Re: Can not set execute permission to file in usb storage media with fat32 format

2010-12-16 Thread Camaleón
On Thu, 16 Dec 2010 09:16:11 +0800, gulfstream wrote:

 I want to execute some script file in usb storage media with fat32
 format, but I can not set execute permission to them with chown +x.
 What shall I do?

You can try to set the default mount options for vfat storage media 
by using GNOME config editor under this key:

/system/storage/default_options/vfat/mount_options

But in my system (lenny), the execute permission is automatically set:

s...@stt008:~$ ls -l /media | grep disk
drwxr-xr-x 3 sm01 root 1024 ene  1  1970 disk

s...@stt008:~$ mount | grep media
/dev/sdc1 on /media/disk type vfat 
(rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=1000)

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.12.16.18.56...@gmail.com



Re: Can not set execute permission to file in usb storage media with fat32 format

2010-12-16 Thread Atif CEYLAN

Hi,
Do you receive any error message? Also, did you try as root?

On 12/16/2010 08:56 PM, Camaleón wrote:

On Thu, 16 Dec 2010 09:16:11 +0800, gulfstream wrote:

   

I want to execute some script file in usb storage media with fat32
format, but I can not set execute permission to them with chown +x.
What shall I do?
 

You can try to set the default mount options for vfat storage media
by using GNOME config editor under this key:

/system/storage/default_options/vfat/mount_options

But in my system (lenny), the execute permission is automatically set:

s...@stt008:~$ ls -l /media | grep disk
drwxr-xr-x 3 sm01 root 1024 ene  1  1970 disk

s...@stt008:~$ mount | grep media
/dev/sdc1 on /media/disk type vfat 
(rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=1000)

Greetings,

   



--
/**
 * @author Atıf CEYLAN
 * Software Developer  System Admin
 * http://www.atifceylan.com
 */


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4d0a631d.2090...@atifceylan.com



Re: Can not set execute permission to file in usb storage media with fat32 format

2010-12-15 Thread Slicky Johnson
On Thu, 16 Dec 2010 09:16:11 +0800
gulfstream gulfstream.w...@gmail.com wrote:

 Hello everybody!
 
 I want to execute some script file in usb storage media with fat32
 format, but I can not set execute permission to them with chown +x.
 What shall I do?
 
 Thank you!
 
 
 gulfstream
 

Who's the owner if the storage media? 
ls -l /mount/point


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20101215202012.38bef...@t61.debian-linux



Re: Can not set execute permission to file in usb storage media with fat32 format

2010-12-15 Thread gulfstream
The owner is the user who want to execute script, and root can not set
execute permission yet.

2010/12/16 Slicky Johnson slickyjohn...@gmail.com

 On Thu, 16 Dec 2010 09:16:11 +0800
 gulfstream gulfstream.w...@gmail.com wrote:

  Hello everybody!
 
  I want to execute some script file in usb storage media with fat32
  format, but I can not set execute permission to them with chown +x.
  What shall I do?
 
  Thank you!
 
 
  gulfstream
 

 Who's the owner if the storage media?
 ls -l /mount/point


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/20101215202012.38bef...@t61.debian-linux




Re: Can not set execute permission to file in usb storage media with fat32 format

2010-12-15 Thread Manon Metten
 I want to execute some script file in usb storage media with fat32 format,
 but I can not set execute permission to them with chown +x. What shall I
 do?

I don't think chown +x is possible on an alien FS.
On my usb stick with FAT32, all files look like they're executables.

You might simply use:

$ . ./script_file

Manon.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktimxsfktikgommizubz25+wkmdqiv1g1na1ew...@mail.gmail.com



Re: Can not set execute permission to file in usb storage media with fat32 format

2010-12-15 Thread gulfstream
Very strange. The usb stick was mounted by debian system automatic. If I
login with root and plug usb stick, I can execute the script after automatic
mounting. But if I login with user and plug usb stick, I cann't execute it
after automatic mounting with message permission denied.

2010/12/16 Manon Metten manon.met...@gmail.com

  I want to execute some script file in usb storage media with fat32
 format,
  but I can not set execute permission to them with chown +x. What shall
 I
  do?

 I don't think chown +x is possible on an alien FS.
 On my usb stick with FAT32, all files look like they're executables.

 You might simply use:

 $ . ./script_file

 Manon.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/aanlktimxsfktikgommizubz25+wkmdqiv1g1na1ew...@mail.gmail.com




Re: Can not set execute permission to file in usb storage media with fat32 format

2010-12-15 Thread Bob Proulx
gulfstream wrote:
 Very strange. The usb stick was mounted by debian system automatic. If I
 login with root and plug usb stick, I can execute the script after automatic
 mounting. But if I login with user and plug usb stick, I cann't execute it
 after automatic mounting with message permission denied.

The automatic mounting is probably setting extra security options.
After you have mounted what are the flags for that mount point?  You
can dump all of the mount information with the mount command and trim
down to just that device with grep.

  $ mount | grep /media

I expect it might say something like 'noexec' there.

But in general the FAT filesystem isn't a Unix filesystem.  You
shouldn't expect Unix filesystem behavior from it.  Unix users,
groups, and file modes are not native there.  The kernel uses an
adaptor layer to make it mostly appear as a Unix filesystem but it is
far from perfect.  Trying to ignore that and act like it is a Unix
filesystem is setting yourself up for a world of hurt.

Bob


signature.asc
Description: Digital signature


Re: Can not set execute permission to file in usb storage media with fat32 format

2010-12-15 Thread David Jardine
On Thu, Dec 16, 2010 at 09:16:11AM +0800, gulfstream wrote:
 Hello everybody!
 
 I want to execute some script file in usb storage media with fat32 format,
 but I can not set execute permission to them with chown +x. What shall I
 do?

Well, chmod +x might be a bit more likely to succeed. ;)

Cheers,
David


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20101216021428.ga2...@gennes.augarten



Re: Can not set execute permission to file in usb storage media with fat32 format

2010-12-15 Thread gulfstream
I think that some extra security options were defined with automatic
mounting also. But I don't find where to change them. The mount information
as below.

$ mount | grep /media
/dev/sdb1 on /media/6361-6365 type vfat
(rw,nosuid,nodev,uhelper=udisks,uid=0,gid=0,shortname=mixed,dmask=0077,utf8=1,showexec,flush)

Either root


2010/12/16 Bob Proulx b...@proulx.com

 gulfstream wrote:
  Very strange. The usb stick was mounted by debian system automatic. If I
  login with root and plug usb stick, I can execute the script after
 automatic
  mounting. But if I login with user and plug usb stick, I cann't execute
 it
  after automatic mounting with message permission denied.

 The automatic mounting is probably setting extra security options.
 After you have mounted what are the flags for that mount point?  You
 can dump all of the mount information with the mount command and trim
 down to just that device with grep.

  $ mount | grep /media

 I expect it might say something like 'noexec' there.

 But in general the FAT filesystem isn't a Unix filesystem.  You
 shouldn't expect Unix filesystem behavior from it.  Unix users,
 groups, and file modes are not native there.  The kernel uses an
 adaptor layer to make it mostly appear as a Unix filesystem but it is
 far from perfect.  Trying to ignore that and act like it is a Unix
 filesystem is setting yourself up for a world of hurt.

 Bob

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iEYEARECAAYFAk0JdPUACgkQ0pRcO8E2ULZm0ACbBEcaY0B0RsVjENJuoGsMuHyM
 nJ8An0KT1Ne9NWSvxpA0NQ9Km5RuN6l0
 =BaGX
 -END PGP SIGNATURE-




Re: Can not set execute permission to file in usb storage media with fat32 format

2010-12-15 Thread gulfstream
Oh, I'm sorry. It's a clerical error. I used is chmod +x, it does not
work.


2010/12/16 David Jardine da...@jardine.de

 On Thu, Dec 16, 2010 at 09:16:11AM +0800, gulfstream wrote:
  Hello everybody!
 
  I want to execute some script file in usb storage media with fat32
 format,
  but I can not set execute permission to them with chown +x. What shall
 I
  do?

 Well, chmod +x might be a bit more likely to succeed. ;)

 Cheers,
 David


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/20101216021428.ga2...@gennes.augarten




Re: Can not set execute permission to file in usb storage media with fat32 format

2010-12-15 Thread Jerome BENOIT

Hi GulfStream,

On 16/12/10 12:45, gulfstream wrote:

Oh, I'm sorry. It's a clerical error. I used is chmod +x, it does not
work.



it does not work because the fat32 format does not support privileges.

Jerome




2010/12/16 David Jardine da...@jardine.de mailto:da...@jardine.de

On Thu, Dec 16, 2010 at 09:16:11AM +0800, gulfstream wrote:
  Hello everybody!
 
  I want to execute some script file in usb storage media with
fat32 format,
  but I can not set execute permission to them with chown +x.
What shall I
  do?

Well, chmod +x might be a bit more likely to succeed. ;)

Cheers,
David


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
mailto:debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact
listmas...@lists.debian.org mailto:listmas...@lists.debian.org
Archive: http://lists.debian.org/20101216021428.ga2...@gennes.augarten





--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4d09a184.8080...@rezozer.net



Re: Can not set execute permission to file in usb storage media with fat32 format

2010-12-15 Thread gulfstream
Hi Jerome,

Thank you! And I think that some extra security options were defined with
automatic mounting. Do you known where to change them?


gulfstream



2010/12/16 Jerome BENOIT g62993...@rezozer.net

 Hi GulfStream,


 On 16/12/10 12:45, gulfstream wrote:

 Oh, I'm sorry. It's a clerical error. I used is chmod +x, it does not
 work.


 it does not work because the fat32 format does not support privileges.

 Jerome



 2010/12/16 David Jardine da...@jardine.de mailto:da...@jardine.de


On Thu, Dec 16, 2010 at 09:16:11AM +0800, gulfstream wrote:
  Hello everybody!
 
  I want to execute some script file in usb storage media with
fat32 format,
  but I can not set execute permission to them with chown +x.
What shall I
  do?

Well, chmod +x might be a bit more likely to succeed. ;)

Cheers,
David


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
mailto:debian-user-requ...@lists.debian.org

with a subject of unsubscribe. Trouble? Contact
listmas...@lists.debian.org mailto:listmas...@lists.debian.org

Archive: http://lists.debian.org/20101216021428.ga2...@gennes.augarten




 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a
 subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/4d09a184.8080...@rezozer.net