LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Cannot change dir permissions from root (https://www.linuxquestions.org/questions/linux-general-1/cannot-change-dir-permissions-from-root-46966/)

sstudley 02-24-2003 06:03 PM

Cannot change dir permissions from root
 
Using an 8 gig fat32 partion formated in WinXP, data sharing and being ftp'ed over the internal net to load different distos on various boxes.
In suse 81 as root, no problems, as a user cannot get a look at anything.
In the shell tried to chmod the dir /media/g to an acceptable set.
It comes up with an error, that I as root, don't have permission to change the dir.
ls -l shows drwxr--r-- root root g
now as root WHAT is going on?
I tried
chmod 755 g ,
and get no errors but also no results

almostlucky 02-24-2003 06:13 PM

im pretty sure fat32 doesnt support permissions, so i beleive you will have to chage the permissions of the mount point

sstudley 02-24-2003 06:21 PM

tried that umounted the drive and applied permissions, but that did not help when it mounted.
have it set up in fstab as user,rw,exec will triy to umask it next.

MasterC 02-25-2003 04:17 AM

umask is setting the permissions. Changing them on the mount point doesn't affect the filesystem, not with fat32 anyway. So yeah, umask is going to be what you need to look into :)

Cool

sstudley 02-25-2003 06:52 PM

got it to work!
set it in fstab
/dev/hda5 /g vfat user,rw,exec,suid,umask=000 0 0
did the same for my ntfs partions except made sure that they stayed read-only.
If only I could get my major win apps to run in linux, will check wine out a little more...
need someone like those guys from winternals that really know ntfs to write a r/w driver!


All times are GMT -5. The time now is 11:20 AM.