[CS-FSLUG] sudo, alternatives, configurators

Tim Young Tim.Young at LightSys.org
Mon Jan 12 09:39:43 CST 2009


If the user home directory "mount points" do not have permission for 
other people to go into them, then only the user themself (or root) can 
cause the directory to be mounted. For example:
drwx------ joe joe joesdir
drwx------ sam sam samsdir

The above is supposed to show that the samsdir is owned by user sam, 
group sam, and has 700 permission. (if you use the group sam instead of 
group users, you can use permission 770). This would keep the user, joe, 
from changing directory into the samsdir directory and causing it to be 
mounted.

You will need to have a credentials file to make it work properly (to 
have a windows password that can be used for the mount). If the mount 
point is inside the users home directory (/home/joe/joesdir) then the 
other users will not even see that it exists. You can put a link to the 
directory in the /home/joe/Desktop directory (or even have the mount 
point there) to have something you can click on and have it 
automatically mounted.

- Tim Young

Chris wrote:
>> Autofs and fstab
>> don't cut it, because we're talking peer-to-peer, where the
>> destination device may be turned off.  I don't want them to have to
>> log out and in again to remount shares, I want them either to persist
>> and auto-remount, or (as I have now, but with sudo-passwording) a
>> script launcher on desktop for the remount.
>>
>>     
>
> Hmmm, maybe I am still misunderstanding you.  The auto mounter is
> really meant for network mounting as you describe, and would
> automatically mount the share every time it was needed. You would still
> have to setup which shares were on which directories and whatnot.
>
> Quickly setting up which shares were available or not would simply be a
> matter of putting a # on the right line in the map file. If you wanted
> user level granularity, I suppose you could work something out with
> group memberships, or get tricky with executable maps.  Shares that
> weren't available would show up as empty directories (unless someone
> fills it thinking it is mounted ;-)
>
> Chris
>
> _______________________________________________
> ChristianSource FSLUG mailing list
> Christiansource at ofb.biz
> http://cs.uninetsolutions.com
>
>   




More information about the Christiansource mailing list