Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't chmod or chown on mounted system.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
athlonkmf
n00b
n00b


Joined: 02 Jun 2002
Posts: 37

PostPosted: Sun Jun 02, 2002 5:31 pm    Post subject: Can't chmod or chown on mounted system. Reply with quote

Ok, this is the problem.

I've installed Gentoo exactly acording to the install-doc.

Now, i have mounted my windows fat32-partitions on /mnt/windowdrive* but as a user I can't do anything with these files, so I wanted to chmod some of them to 777.

Although there were no errormessages, the files didn't seem to be affected with the chmod-commands.

So I decided to simply chown the files to the user, but then I get the message: Operation not permited even though I'm logged in a console as root

Anyone know what the problem may be?


I've tried to add the strings user or defaults in the fstab for some partitions to test it, but still no success.

Of course, I'm able to write or delete as root, but that's not the solution
Back to top
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Sun Jun 02, 2002 5:44 pm    Post subject: Reply with quote

FAT32 doesn't support file permissions. So trying to chmod those files on a filesystem like that won't work.
Back to top
View user's profile Send private message
athlonkmf
n00b
n00b


Joined: 02 Jun 2002
Posts: 37

PostPosted: Sun Jun 02, 2002 5:55 pm    Post subject: Reply with quote

Zu` wrote:
FAT32 doesn't support file permissions. So trying to chmod those files on a filesystem like that won't work.



so how am i suppose to edit those files as a normal user then? umask?


And it's the same problem for smbfs-filessystems actually


Last edited by athlonkmf on Sun Jun 02, 2002 5:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Sun Jun 02, 2002 5:56 pm    Post subject: Reply with quote

I have the same problem. What can be done?
_________________
Postcount ++
Back to top
View user's profile Send private message
Maldrim
n00b
n00b


Joined: 30 May 2002
Posts: 30

PostPosted: Sun Jun 02, 2002 6:04 pm    Post subject: Reply with quote

Edit your fstab and modify/or add the umask=(Your desired setting) that way the drive will be mounted with the permissions you want.
umask=0 is the equivalent of chmod 777
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Sun Jun 02, 2002 9:20 pm    Post subject: Reply with quote

In addition to umask the options uid (user id) and gid (group id) can be used in the option field of /etc/fstab to specify a more detailed protection, check man mount -> fat for more specific info.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Sun Jun 02, 2002 9:59 pm    Post subject: Reply with quote

OK I tried it and it worked perfectly. Thanks.
_________________
Postcount ++
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum