Subj : Re: Change owner and permissions for second hard disk To : comp.os.linux From : gnuruandstuff Date : Wed Jun 16 2004 12:27 pm Hacking Coff wrote in message news:... > thomas icking wrote: > > Fred Emmott wrote: > >>>Fedora, I always had to mount my second hard disk with something like > >>> mount /dev/hdb1 /home/myhome/mydisk > >>>To make this step superfluous, I now changed the entry for the second > >>>hard disk in /etc/fstab to something like > >>> /dev/hdb1 /home/myhome/mydisk auto auto,user 0 1 > >>>This works: when I start up my system, the second disk is mounted. > >>> > >>>But I now have the problem, that all directories and files under mydisk > >>>have the owner and group "root", and when to change that. It also refuses > >>>to extend (e.g. with "chmod") the write permissions for the files to all > >>>users. > >>> > >>>Does this problem have to do with the change of the mount command? > >>>What is going wrong anyway? > >> > >>What filesystem are you using for the second hard disk? > > > > > > vfat. > > This is necessary, because I still need the ability to occasionally remove > > my first hard disk and to replace it with a windows 98 disk. > > > > The Short Answer > mount /dev/hdb1 /home/myhome/mydisk -o 'gid=users,umask=117' > > or in /etc/fstab: > /dev/hdb1 /home/myhome/mydisk vfat gid=users,umask=117 0 1 > > Either grants the group users read/write to the vfat partition/disk. It > also revokes execute from everyone. > This is covered, sort of, at http://gnuru.org/index.pl?node_id=696 .