Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Permissions issue.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Aquiles
Apprentice
Apprentice


Joined: 23 Feb 2007
Posts: 230
Location: Somewhere, surrounded by my circumstances.

PostPosted: Sun Aug 31, 2008 10:32 am    Post subject: [SOLVED] Permissions issue. Reply with quote

Hi everybody.

I've created the new directory /mnt/pen. The idea is that I will mount my pendrive (/dev/sdb1) there. So, what I would like to do is to set the permissions of /mnt/pen to be "drwxrwxr-x root:pendrive" so that all users in the group "pendrive" can read/write in the pen. I have to set this permission/ownership after mounting the device, as you all probably know. And the thing is that I get the following error when changing the ownership (with /dev/sdb1 mounted, as I say):

Quote:

zeus mnt # chown root:pendrive /mnt/pen/
chown: changing ownership of `/mnt/pen/': Operation not permitted


Of course, if I change the ownership of /mnt/pen without /dev/sdb1 mounted it works fine. But what I need is to do it with sdb1 mounted. I've already done it with a couple of partitions of my hard disk that I mount on ~/downloads and ~/secure and it worked fine, so I don't know why is it that I cannot do it with /dev/sdb1.

Thanks for your help.
_________________
Aquiles


Last edited by Aquiles on Mon Sep 01, 2008 2:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Sun Aug 31, 2008 2:14 pm    Post subject: Reply with quote

Check out the manpage for mount. I think there is something in there that sets perms on a device mount point once it is mounted but I'm not sure. I had to use that option(s) on a previous build of gentoo. I have my /etc/fstab backed up somewhere from that build, if I find it, I'll let you know what the options were.
_________________
I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23552

PostPosted: Sun Aug 31, 2008 11:51 pm    Post subject: Reply with quote

When the pendrive is mounted, your chown affects the root directory on the pendrive. If the pendrive is formatted with a filesystem that does not understand Unix style ownership, chown may fail in the manner shown.
Back to top
View user's profile Send private message
Aquiles
Apprentice
Apprentice


Joined: 23 Feb 2007
Posts: 230
Location: Somewhere, surrounded by my circumstances.

PostPosted: Mon Sep 01, 2008 2:29 pm    Post subject: Reply with quote

Of course!!! Boy I didn't think of that! It is an vfat pendrive. And unfortunately I must use this filesystem.

Ok now what I will try is to set the gid and the umask in /etc/fstab and see if it behaves as expected...

Thanks for the hint.
_________________
Aquiles
Back to top
View user's profile Send private message
Aquiles
Apprentice
Apprentice


Joined: 23 Feb 2007
Posts: 230
Location: Somewhere, surrounded by my circumstances.

PostPosted: Mon Sep 01, 2008 2:36 pm    Post subject: Reply with quote

Ok everything is working now. Thank you guy for the hints.
_________________
Aquiles
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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