
On Sat, 2011-10-15 at 09:53 +0200, lynn wrote:
The fact still remains that CIFS does not know what the the user:group permissions are of the user who has just authenticated. What is clear is that new files will be created with either:
1. The uid of the user who mounts the share. Or, 2. The uid and gid specified on the mount line.
What I need is this:
mount -t cifs //hh1.com/users /home -o rw,user,uid=$USER,gid=users
but of course $USER is only available after the user has authenticated. Is there a script that runs immediately after the user has authenticated where I could place this line?
You can only mount the remote once. So it could never have different uid= settings for each user at the same time. Maybe that is not what you need. On any client machine there will be only one user at a time? I think automount deals with this sort of thing. It is on my list to figure that out. But it seems to manage dynamically mounting disks based on user logins, and probably other events as well. Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org