Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
permissions on smbfs mounted drives
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
WarMachine
Apprentice
Apprentice


Joined: 15 Jul 2002
Posts: 181

PostPosted: Sun Dec 29, 2002 4:48 am    Post subject: permissions on smbfs mounted drives Reply with quote

Any way to let a specific user(s) have different read and write access to these shares?

I'd like to give full (read and write) access to 2 users and root (duh)
Read only access to 1 user
and keep all the other users from reading or writing

having to list the usernames to keep out totally wouldn't be tedious if it is the only option, there's less than 10 users on the system

Thanks for help on any of these
Back to top
View user's profile Send private message
474
l33t
l33t


Joined: 19 Apr 2002
Posts: 714

PostPosted: Wed Jan 01, 2003 9:40 am    Post subject: Reply with quote

Linux and related software doesn't reliably support POSIX access control lists yet so I think the answer is, sadly, no - at least, not in the manner I think you're asking. You're limited to the user/group/others permission scheme.

I think the only way you can accomplish this to have the share mounted for each user on your Linux client as part of a login script in ~/.bash_profile and unmounted at the end of a user session, rather than having it mounted at boot. This mount process could take advantage of the "-t smbfs -o uid,gid,fmask,dmask" options so you can set the appropriate permissions for the user for the mount point of the share during their session. In fact you could put the mount command in a separate file (non-writeable by your users) and source it in .bash_profile, this preventing the users from working around the restriction. So you can set fine-grained permissions for each user, plus you can elect not to mount the share in the first place for those users who shouldn't have access. It could even be scripted so that you maintain the permissions in a database or config file or something for easier maintenance. Does that sound reasonable?
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