[opensuse] Windowsserver supplying a home-dir on SuSE10.2
Hi list, - I know (well, think) this can be done. - I've got a Wintendo file server that needs to supply the home-dirs of all users of a multiuser SuSE10.2 system. - let's not discus why...it's just so. Sigh. - the users are already authenticating against a Wintendo AD, works fine. - I simply forgot how to do... - Do I just (in /etc/fstab) mount or what? -- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Verner Kjærsgaard wrote:
Hi list,
- I know (well, think) this can be done. - I've got a Wintendo file server that needs to supply the home-dirs of all users of a multiuser SuSE10.2 system. - let's not discus why...it's just so. Sigh.
Yeah but... no more pipes, sockets, symlinks, and other nasty surprises for unix users. I would at least go on record to point out the technical problems to the PHB beforehand.
- the users are already authenticating against a Wintendo AD, works fine.
- I simply forgot how to do... - Do I just (in /etc/fstab) mount or what?
IMHO amd or autofs would be the way to implement that sort of thing. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Onsdag 22 august 2007 20:47 skrev Sloan:
Verner Kjærsgaard wrote:
Hi list,
- I know (well, think) this can be done. - I've got a Wintendo file server that needs to supply the home-dirs of all users of a multiuser SuSE10.2 system. - let's not discus why...it's just so. Sigh.
Yeah but... no more pipes, sockets, symlinks, and other nasty surprises for unix users. I would at least go on record to point out the technical problems to the PHB beforehand.
- the users are already authenticating against a Wintendo AD, works fine.
- I simply forgot how to do... - Do I just (in /etc/fstab) mount or what?
IMHO amd or autofs would be the way to implement that sort of thing.
Joe
- Thank you for the answer. - may I ask; what's "amd" ? - and in what manner could I use autofs to do this tast with? - I thought I would need to haven en entry in /etc/fstab, something like...: mount -t smbfs something-here something-here some-options-here... -- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Verner Kjærsgaard wrote:
Onsdag 22 august 2007 20:47 skrev Sloan:
Verner Kjærsgaard wrote:
Hi list,
- I know (well, think) this can be done. - I've got a Wintendo file server that needs to supply the home-dirs of all users of a multiuser SuSE10.2 system. - let's not discus why...it's just so. Sigh.
Yeah but... no more pipes, sockets, symlinks, and other nasty surprises for unix users. I would at least go on record to point out the technical problems to the PHB beforehand.
- the users are already authenticating against a Wintendo AD, works fine.
- I simply forgot how to do... - Do I just (in /etc/fstab) mount or what?
IMHO amd or autofs would be the way to implement that sort of thing.
Joe
- Thank you for the answer. - may I ask; what's "amd" ?
- and in what manner could I use autofs to do this tast with? - I thought I would need to haven en entry in /etc/fstab, something like...:
mount -t smbfs something-here something-here some-options-here...
amd is the "auto mounter daemon" which is a mature cross platform (unix) automatic network disk mounting solution, but in current linux distros it's been pretty much superseded by autofs, a native linux implementation of the same general idea. If you have autofs installed on your linux workstation, there should be some files there, such as /etc/auto.master and others, including auto.home and auto.net which I've found useful. There should also be a file called auto.smb for mounting remote pc-lan shares. Take a look at /etc/auto.smb, as it should provide a good starting point. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Onsdag 22 august 2007 22:54 skrev Sloan:
Verner Kjærsgaard wrote:
Onsdag 22 august 2007 20:47 skrev Sloan:
Verner Kjærsgaard wrote:
Hi list,
- I know (well, think) this can be done. - I've got a Wintendo file server that needs to supply the home-dirs of all users of a multiuser SuSE10.2 system. - let's not discus why...it's just so. Sigh.
Yeah but... no more pipes, sockets, symlinks, and other nasty surprises for unix users. I would at least go on record to point out the technical problems to the PHB beforehand.
- the users are already authenticating against a Wintendo AD, works fine.
- I simply forgot how to do... - Do I just (in /etc/fstab) mount or what?
IMHO amd or autofs would be the way to implement that sort of thing.
Joe
- Thank you for the answer. - may I ask; what's "amd" ?
- and in what manner could I use autofs to do this tast with? - I thought I would need to haven en entry in /etc/fstab, something like...:
mount -t smbfs something-here something-here some-options-here...
amd is the "auto mounter daemon" which is a mature cross platform (unix) automatic network disk mounting solution, but in current linux distros it's been pretty much superseded by autofs, a native linux implementation of the same general idea.
If you have autofs installed on your linux workstation, there should be some files there, such as /etc/auto.master and others, including auto.home and auto.net which I've found useful. There should also be a file called auto.smb for mounting remote pc-lan shares.
Take a look at /etc/auto.smb, as it should provide a good starting point.
Joe
Thanks for the info, I'm on to it with man pages, info, google and all. I'll try to remember to let the list know of my progres. Best regards, - V. -- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
- succes. - this is how-to let a wintendo mashine deliver home-dirs to a linux box. - on win: create the share, name it (say) wintendo. Create a user named root, give him a password, set it to never expire and it should not be changed uppon first login. Give this user root all rights to the wintendo share. - fire up Konqueror, type in an URL like this: SMB://IP-of-win-machine/wintendo -and check that root has access and all. Close konqueror. Now, on the Linux box, edit /etc/fstab. Comment out the mount for /home (you DID put that on a partition for itself, right?). Add a line to fstab: (the next two lines is in fact ONE line in fstab... //IP-of-windows-machine/wintendo /home cifs rw,user=root,password=very-secret 0 0 On the linux box, as root, create a dir like this: mkdir /home Now, as root, reread /etc/fstab, do it with mount -a Go into YaST. Create a new user, name him whatever, and see that his home-dir indeed now resides on the win-box. - thanks to the list again for directing me ! Best regards, Verner -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Verner Kjærsgaard wrote:
- succes.
- this is how-to let a wintendo mashine deliver home-dirs to a linux box.
- on win: create the share, name it (say) wintendo. Create a user named root, give him a password, set it to never expire and it should not be changed uppon first login. Give this user root all rights to the wintendo share.
- fire up Konqueror, type in an URL like this: SMB://IP-of-win-machine/wintendo
-and check that root has access and all. Close konqueror.
Now, on the Linux box, edit /etc/fstab. Comment out the mount for /home (you DID put that on a partition for itself, right?).
Add a line to fstab:
(the next two lines is in fact ONE line in fstab... //IP-of-windows-machine/wintendo /home cifs rw,user=root,password=very-secret 0 0
On the linux box, as root, create a dir like this: mkdir /home
Now, as root, reread /etc/fstab, do it with mount -a
Go into YaST. Create a new user, name him whatever, and see that his home-dir indeed now resides on the win-box.
- thanks to the list again for directing me !
Thanks for the report, I'd be curious to hear what sort of difficulties you encounter down the road with this on things like ownerships and permissions, and lack of unix filesystem features. I notice that you have a single /home partition in /etc/fstab, owned by root. Were you able to log in as that user and perform some typical activities which would create, modify, delete, rename files, etc? Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Verner Kjærsgaard wrote:
- succes.
- this is how-to let a wintendo mashine deliver home-dirs to a linux box.
- on win: create the share, name it (say) wintendo. Create a user named root, give him a password, set it to never expire and it should not be changed uppon first login. Give this user root all rights to the wintendo share.
- fire up Konqueror, type in an URL like this: SMB://IP-of-win-machine/wintendo
-and check that root has access and all. Close konqueror.
Now, on the Linux box, edit /etc/fstab. Comment out the mount for /home (you DID put that on a partition for itself, right?).
Add a line to fstab:
(the next two lines is in fact ONE line in fstab... //IP-of-windows-machine/wintendo /home cifs rw,user=root,password=very-secret 0 0
On the linux box, as root, create a dir like this: mkdir /home
Now, as root, reread /etc/fstab, do it with mount -a
Go into YaST. Create a new user, name him whatever, and see that his home-dir indeed now resides on the win-box.
- thanks to the list again for directing me !
Best regards, Verner
hmmm... A number of thoughts a) user is root, password secret (locally hmm..). The first problem is NT/AD ids have a discrete ID scheme from that used in Linux, if root is translating into admin account you have an ordinary user logged as an admin to the windows server (and AD/NT)... somehow I do not think that is your intent :-) This can persist into other areas (like other users home directories)... b) The ideal would be for someone to log in the their home directory with the appropriate user credentials, however these credentials should only become available after the user has authenticated to the linux machine. /etc/fstab gives global mounts, for user specific mounts you probably need something different. I would suggest you have a look at.. http://pserver.samba.org/samba/ftp/cifs-cvs/linux-cifs-client-guide.pdf I know those who have been mounting home dirs with NFS/NISS have developed a number of ways of handling this over time, as cifs is now giving a pure mount some of this knowledge an experience may be useful.. - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGzdkMasN0sSnLmgIRAu+YAKDLvl6gjWbLN39GqId3f9toOnjOJQCfXJBC oLQo4eDZBORME5RapV+m+Vg= =O2YB -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Aug 23 2007 19:59, G T Smith wrote: In fact...
- succes.
- this is how-to let a wintendo mashine deliver home-dirs to a linux box.
[...] On the linux box, as root, create a dir like this: mkdir /home
If /home is a separate mount, the directory will already exist.
Now, as root, reread /etc/fstab, do it with mount -a
There is no such thing as rereading fstab. Hence mount -a is superfluous. Just mount /home;
Go into YaST. Create a new user, name him whatever, and see that his home-dir indeed now resides on the win-box.
- thanks to the list again for directing me !
A number of thoughts
a) user is root, password secret (locally hmm..). The first problem is NT/AD ids have a discrete ID scheme from that used in Linux, if root is translating into admin account you have an ordinary user logged as an admin to the windows server (and AD/NT)... somehow I do not think that is your intent :-) This can persist into other areas (like other users home directories)...
b) The ideal would be for someone to log in the their home directory with the appropriate user credentials, however these credentials should only become available after the user has authenticated to the linux machine. /etc/fstab gives global mounts, for user specific mounts you probably need something different.
..like pam_mount for example.
I would suggest you have a look at..
http://pserver.samba.org/samba/ftp/cifs-cvs/linux-cifs-client-guide.pdf
Jan -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
G T Smith
-
Jan Engelhardt
-
Sloan
-
Verner Kjærsgaard