Sry that was windows mount :)
/usr/bin/smbclient \\\\compname\\share <pass>
/rob
Main Topics
Browse All TopicsHi!
Ok, I have a difficult problem:
We have a Gentoo Linux/Solaris 2.8 environment. Our user's home directories are on the Solaris box and are being used via NFS.
We are not happy with NFS anymore, so we are looking for alternatives. We were thinking about Samba. The authentication happens via NIS.
What is the best way to automatically map the remote home directories for each user when he/she logs in. (for example via SSH or directly at the workstation).
I guess the mapping of the home directory for each user must happen before the system-logon is complete because config files reside in the the home dirs (.zprofile, for example).
Please help me with specific answers. Stuff like "you could use AFS", doesn't help, I know that myself. I need a spefic answer to my specific problem.
Thank you so much!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Yes but thats the command to use in Linux but im investigating where to put it because the reason you sad your self, that some of the settings files f.ex. .tcshrc and .bashrc is in the users home directory.
And it has to be mounted before the user cwd to that dir in the login script.
Why arent you pleased with nfs ?
/Rob
I getting old the best way to mount the home dirs is to mount the all users sirectorys f.ex.
if you have your users home dir on the server in /home/users
then just mount the /home/users at startup of the clients thn you dont have to remount the dirs at every login.
This is the way they mount home dirs at work(but they run nfs):
home:/export/homes/di99 /home/di99 nfs hard,intr,grpid,quota,prot
My home dir is f.ex. /home/di99/di99rmd and all this is mounted at startup.
/Rob
Thanks for all of your responses so far.
Well, to be honest, I don't really know why my boss doesn't want to use NFS anymore. I think he said that Samba is "more secure". Is that true?
And Rob: Thanks for all your replies, but once again: It's not just about the starting of the client _machine_, the home dirs should also be mapped correctly if I just SSH directly into the Solaris box.
There is a security advantage to an SMB share if, and only if, the client is a windows box (assuming the shares are password protected). When a windows box maps a share it supplies the authentication information from the logged on user. And since a windows box doesn't provide for (in the general case) simultaneous logins only the authenticated user will be able to see the mapped drive. At logout any mapped share are unmapped and the next user can't see anything from the previous user.
However, Linux/Unix machines do allow simultaneous logins. So it is possible for someone logged in or su'd to root to see anything the machine can see. Even if the NFS server restricts access to exported volumes so that root can't see the data root can always "su some-user" and see the data. Consequently there's no security advantage to SMB shares when using Linux/Unix workstations.
Business Accounts
Answer for Membership
by: da99rmdPosted on 2004-04-22 at 04:35:20ID: 10887686
Just set the samba to use the NIS for auth and then just run a normal mount script to mount the dir.
net use H: \\conmpname\sharename
/Rob