LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to change permission (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-change-permission-9919/)

Joe Soap 12-11-2001 12:21 AM

Unable to change permission
 
I have recently installed Suse 7.3 and I am unable to change the permissions of files and directories on my Windows drives. I've tried to use the lsattr command to see whether the 'i' flag/indicator/bit is set but I get the followinf response:

For directories: Invalid argument While reading flag on /windows/H/Unzipped

For files: Inappropriate ioctl for device While reading flags on /windows/F/Photos/(filename here)

Any ideas?

Thanks
Joe

Joe Soap 12-11-2001 12:22 AM

Oops, forgot to say: I've tried it both when logged in as root and when logged in as superuser.

Ta
Joe

isajera 12-11-2001 01:00 AM

you can't change the permissions of a file on a windows partition - the filesystems that windows uses don't have permissions. the "permissions" that linux assigns to the files are virtual - they're masked over the entire partition. if you want to change the permissions for the windows partition, then you need to tinker with your /etc/fstab file.

Joe Soap 12-11-2001 01:10 AM

Much obliged, I'll give it a shot.

Joe

Joe Soap 12-17-2001 12:24 AM

I've successfully "fiddled" with /etc/fstab so that my permissions now show that I have read, write and execute access to my windows partitions. However, when I try to update an exisiting .jpg or save a new one with GIMP, it simply says that it cannot save the file. I've only tried it when logged in as a user, not as root.

Any suggestions?

Joe

isajera 12-17-2001 03:08 AM

ummm... first try to change it as root. i'm pretty sure that will work. most distros will allow the windows partition to be readable from users, but not writable. that's mainly for security reasons, but it's not really that important on a desktop system. there's a way to mount the partition as writeable by default, but i can't remember offhand... i'll try to look it up tomorrow... it's getting late at the moment ;)

Joe Soap 12-18-2001 12:34 AM

I logged in as root, fired up Gimp and had no problem to create and save a new image.

linuxcool 12-19-2001 05:50 AM

Try adding ' umask=000 ' to the windows partition line in your fstab file. Like this:

/dev/hda1 /mnt/windows vfat noauto,user,umask=000 0 0

Joe Soap 12-30-2001 05:56 AM

Thanks mate. I finally got around to trying your advice and it worked a treat. I am much obliged to you.

Cheers
Joe

linuxcool 12-30-2001 11:33 PM

You're welcome. :)


All times are GMT -5. The time now is 08:25 AM.