StuffedLion
April 8th, 2009, 07:44 PM
Hi,
I run a samba PDC (using ubuntu 8.10) that serves some shared folders to a small windows network (and handels logins, profiles etc) but users can also login on the Ubuntu PDC istelf and work with gnome.
Now it showed to be quite difficult to find a way that users can also use the shared folders when they work on the PDC itself. I want them to find a similar user experience like when they sit in front of there windows client. i.e. they should find a (network) drive symbol for the shared folders, either on the desktop or at least in nautilus. And of course everyone has to have full access to the shared files.
I think the only way to do this is to mount the shared folders via cifs every time a user logs into his or her user account. How can I do this? Is there a way to do it? Pls help! :)
First I tried to mount the samba shares via fstab. However, this can not work since on startup "mount -a" is done bevore the samba server even starts. yes, I could alter the starting order but I rather don't want to mess with the init...
Then I tried to simply bind the folders in questions via fstab into a folder in /media. However, unlike when you mount any drive or network share into /media you wont get a drive icon on the desktop when only binding a folder. That sucks. There is no help in having these folders binded into /media as long as users can not find them (since they have no idea about where to look).
Third I added a softlink into each users home directory that would lead them to the coresponding shared folder. However, that also wont work well. I did set the sgid bit on the folders and when a user creates a new file in the shared folder it gets the correct user group (i've set up a user group for all user of the domaene) so that others can have full access to those files. But when someone copys an existing file into that directory his or her usergoup sticks to it and no one else can work with this files. Furthermore, since user now have folders that contain all shared files in there home dir, I fear someone could delete everything, thinking he would only delete his own files...
Thats why I believe the only thing that would help is if there is a way to mount the shared folder on logon. How can I do that?
thanks
Lion
I run a samba PDC (using ubuntu 8.10) that serves some shared folders to a small windows network (and handels logins, profiles etc) but users can also login on the Ubuntu PDC istelf and work with gnome.
Now it showed to be quite difficult to find a way that users can also use the shared folders when they work on the PDC itself. I want them to find a similar user experience like when they sit in front of there windows client. i.e. they should find a (network) drive symbol for the shared folders, either on the desktop or at least in nautilus. And of course everyone has to have full access to the shared files.
I think the only way to do this is to mount the shared folders via cifs every time a user logs into his or her user account. How can I do this? Is there a way to do it? Pls help! :)
First I tried to mount the samba shares via fstab. However, this can not work since on startup "mount -a" is done bevore the samba server even starts. yes, I could alter the starting order but I rather don't want to mess with the init...
Then I tried to simply bind the folders in questions via fstab into a folder in /media. However, unlike when you mount any drive or network share into /media you wont get a drive icon on the desktop when only binding a folder. That sucks. There is no help in having these folders binded into /media as long as users can not find them (since they have no idea about where to look).
Third I added a softlink into each users home directory that would lead them to the coresponding shared folder. However, that also wont work well. I did set the sgid bit on the folders and when a user creates a new file in the shared folder it gets the correct user group (i've set up a user group for all user of the domaene) so that others can have full access to those files. But when someone copys an existing file into that directory his or her usergoup sticks to it and no one else can work with this files. Furthermore, since user now have folders that contain all shared files in there home dir, I fear someone could delete everything, thinking he would only delete his own files...
Thats why I believe the only thing that would help is if there is a way to mount the shared folder on logon. How can I do that?
thanks
Lion