You are not logged in.

#1 2007-09-15 09:59:05

Klenje
Member
From: Europe
Registered: 2007-09-12
Posts: 36

Fstab and auto mount

Hi, I have 2 windows partitions that I want to mount automatically at the startup, but if I set the 'auto' option, the owner of the device is root, and I have only read rights. Now I've inserted 'noauto', so I go to Konqueror and click on the device to mount it. But it's not the ideal solution. Any help?
Thanks

actual fstab

/dev/sda5            /mnt/dati        vfat      users,noauto,gid=users,umask=0002,rw,exec,utf8 0 0
/dev/sda2            /mnt/windows        vfat     users,noauto,shortname=mixed,auto,gid=users,umask=0002,rw,exec,utf8 0 0

Offline

#2 2007-09-15 10:21:52

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: Fstab and auto mount

Check `man mount` for uid and gid and mask options for the partition's filesystem. Maybe the user or users option can be interesting and altering the rights of the mount point, too.

Describe exactly what you want, if you can't figure it out with the manpage. E.g. which user and group should own the "partition", which right's shall be applied to folders and files, etc.

Last edited by harlekin (2007-09-15 10:23:43)


Hail to the thief!

Offline

#3 2007-09-15 10:22:02

robertp
Member
From: Warszawa, Poland
Registered: 2007-09-11
Posts: 123

Re: Fstab and auto mount

The easiest way is to specify uid option to mount.

Offline

#4 2007-09-15 11:31:19

Klenje
Member
From: Europe
Registered: 2007-09-12
Posts: 36

Re: Fstab and auto mount

I'd like to have these two partitions mounted automatically at startup and that any user has full rights on it
well, if I remove 'noauto' from my fstab, the partitions are mounted automatically, but users don't have full rights on it. Has the uid option an effect also on permissions?
thanks

Offline

#5 2007-09-16 14:13:23

robertp
Member
From: Warszawa, Poland
Registered: 2007-09-11
Posts: 123

Re: Fstab and auto mount

Eventually  you can use umask=0 mount option but this is very unsecure.

Offline

#6 2007-09-16 15:14:41

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: Fstab and auto mount

Just set uid to root and gid to users and the permissions to rwxrwx---. Won't you be fine with that?


Hail to the thief!

Offline

#7 2007-09-16 22:49:29

Klenje
Member
From: Europe
Registered: 2007-09-12
Posts: 36

Re: Fstab and auto mount

yes, that should solve my problems. But could you please tell me what should I write exactly? I'm a bit confused by man page... thanks

Offline

Board footer

Powered by FluxBB