Code:
/dev/md35 /depo35 ext4 defaults,nofail,discard,grpid
seems to be missing 2 columns. There need to be 6 columns for each mount. Always 6. Always.
Also, no need to say "defaults", then change settings. I have never seen the grpid option used before. Looking it up. Eh ... fine. Seems a little odd, but whatever. I'm comfortable using setgid.
Code:
/dev/md35 /depo35 ext4 nofail,discard 0 0
The number of spaces between columns isn't important. 1 or 15 doesn't matter, but there needs to be 6 columns. The manpage for fstab explains what each column means.
wrxwrx.r. is an odd order for permissions.
rwx is the normal order, in 3 groups. The permissions and group for any new object in a directory are controlled by the setgid and the umask for the userid creating the object (file or directory). The parent directory can only control the group. The permissions are controlled by your umask.
To handle newly created objects being in th plugdev group, do:
Code:
chgrp plugdev /depo35
chmod g+s /depo35
To force 775 permissions for directories and 664 for files, set your umask to 0002. Do that in your ~/.bashrc file, if you like or you can do it in any terminal where you want that. If you want all processes under your userid to honor it, then logout and login again after the .bashrc change. BTW, the default for Ubuntu is umask 0002, so it would only be different if someone screwed with it.
Just to be extremely clear - the umask command looks like this:
To see it, run
There is no need for grpid in the fstab. I didn't look too closely at the other mount options. I use this:
Code:
/dev/mapper/ubuntu--vg-home--lv /home ext4 errors=remount-ro,noatime 0 2
for my /home mount.
Bookmarks