LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2001, 01:21 AM   #1
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Rep: Reputation: 30
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
 
Old 12-11-2001, 01:22 AM   #2
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

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

Ta
Joe
 
Old 12-11-2001, 02:00 AM   #3
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
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.
 
Old 12-11-2001, 02:10 AM   #4
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Much obliged, I'll give it a shot.

Joe
 
Old 12-17-2001, 01:24 AM   #5
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
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
 
Old 12-17-2001, 04:08 AM   #6
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
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
 
Old 12-18-2001, 01:34 AM   #7
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
I logged in as root, fired up Gimp and had no problem to create and save a new image.
 
Old 12-19-2001, 06:50 AM   #8
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
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
 
Old 12-30-2001, 06:56 AM   #9
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Thanks mate. I finally got around to trying your advice and it worked a treat. I am much obliged to you.

Cheers
Joe
 
Old 12-31-2001, 12:33 AM   #10
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You're welcome.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change permission alma Linux - Newbie 5 10-28-2005 11:17 PM
how to change the file permission ?? AK prince Slackware 17 08-05-2005 01:16 PM
Why I cannot change permission on /etc/sudoers? mikeshn Linux - Software 1 01-06-2005 12:26 PM
administrator not able to change permission cchanana Linux - Newbie 5 12-02-2004 12:04 PM
How do I change permission many at a time? akihandyman Mandriva 1 08-26-2004 11:40 PM


All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration