[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Weird chmod problem
On Wed, Nov 27, 2002 at 11:33:58AM +0000, Darrell Blake wrote:
> I'm running slackware current and I've got a problem with the /mnt
> directories. Whenever I try and chmod /mnt/windows so I can access it
> via a normal user (because by default in slack current it's not
> accessible for some reason) it doesn't work. No matter what I do I can't
> chmod it. I've even tried to chmod 777 it but it just stays at what it's
> at. Is there any way I can solve this? I don't want to su as root
> everytime I want to play my mp3s that are on my windows partition.
>
fat, vfat formatted partitions don't recognise permissions, ownership
etc. You have to give defaults to mount when you mount the drive.
I do this by setting defaults in the Options part of my fstab file.
Currently mine is set to
uid=0,gid=102,umask=007,noexec
Files will have a default user of root, and a group of dos. The umask is
actually permissions that you DON'T want (it's an inverse mask) so files
on that drive will have user permissions of rwx, groups permissions of
rwx and other permissions of --- (ie, nothing). I also specify noexec,
because everything is set as x (so you can look in directories) but I
don't want to execute anything.
Any users on my machine who want to look in the fat partition get added
to the dos group.
> Darrell
>
> ___________________________________________________________________
>
> Sheffield Linux User's Group -
> http://www.sheflug.co.uk/mailfaq.html
>
> GNU the choice of a complete generation.
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.