View previous topic :: View next topic |
Author |
Message |
Gabriel_Blake Guru
Joined: 16 Sep 2007 Posts: 362
|
Posted: Fri Mar 27, 2009 5:09 pm Post subject: [SOLVED] fstab: umask not working with ext3 /tmp partition |
|
|
I have this little problem... I've put /tmp on a separate partition. /tmp should have a permissions 1777, so it can be accessed by any user. I've tried to add umask=000 to fstab:
Code: |
/dev/sda2 /boot ext2 noauto,noatime 1 2
/dev/sda1 / ext3 noatime 0 1
/dev/sda5 /home ext3 noatime 0 0
/dev/sda6 /tmp ext3 noatime,umask=000 0 0
/dev/sr0 /home/gabriel/@CD auto users,noatime,noauto 0 0
/dev/sdb1 /home/gabriel/@USB vfat users,noatime,noauto 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
but when I try to mount I get:
Code: |
EXT3 FS on sda6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
EXT3-fs: Unrecognized mount option "umask=000" or missing value
|
I've also tried to mount it without umask and set permission by chmod..... and it didn't work. What's wrong ? What am I doing wrong ?
Last edited by Gabriel_Blake on Fri Mar 27, 2009 5:24 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54420 Location: 56N 3W
|
Posted: Fri Mar 27, 2009 5:12 pm Post subject: |
|
|
Gabriel_Blake,
umask is ignored by filesystems that have proper *NIX permissions.
You need to set the permissions on the mount point but I don't recall if its before the partition is mounted or after. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Gabriel_Blake Guru
Joined: 16 Sep 2007 Posts: 362
|
Posted: Fri Mar 27, 2009 5:23 pm Post subject: |
|
|
ahhh... stupid me... as usual... I've set chmod 1777 on /usr instead of /tmp. That's what you get for using midnight commander.
True... setting permissions to 1777 after mounting works.
Thank you. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|