Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cross Mounting Accounts

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
In one environment I have a Solaris 8 server and 3 SunBlade 100 workstations.

1. I need to setup this environment where as when the client logs in, they log into the server. I must manually select the server from a list at present, then login.

2. I also need to implement cross-mounts from the workstations.

I am not sure how to do these.

Thanks very much for your help and advice. Michael
 
use: automount
if NIS|NIS+ there is a table 'auto_home'
else edit /etc/auto_direct
look at man pages. ------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
 
On my server I have:

1. Ensured all systems proper in hosts file.
2. Created a user account for testing (with the home/username dir) using admintool.
3. Ensured the test user has proper permissions to /home/username dir.
4. Configured my dfstab file
5. Configured my auto_master and auto_home files.

I copied down to a test workstation, hosts, passwd and shadow,auto_master and auto_home files.

I am getting the following error when I attempt to login from the test workstation CDE:

Unable to access home directory.
Click OK to start Failsafe, or cancel to restart login.

What do you recommend?
Michael
 
In case anyone is interested. Here is how I eventually created cross mounts for user accounts\hosts in a non-NIS environment. Adjust per your environment's requuirements:

Pre-requisites:

* Ensure host systems are in /.rhosts file:
<hostname> +
* Ensure host system(s) are in /etc/hosts file:
<ip> <hostname>
* Ensure host systems are in /etc/hosts.equiv file:
<hostname>

From Server (as root):
0. Create user accounts.
1. Create physical directory for user accounts: /export/home/<username>
2. Make user owner of user directory: chown <username>:staff /export/home/<username>
3. Set permissions: chmod 755 /export/home/<username>

4. Ensure /etc/auto_master is configure for /home (default):
/home auto_home -nobrowse
/xfn -xfn
/cots auto_cots -browse

5. Configure /etc/auto_home:
# Home directory map for automounter
# <username> <hostname>:/<fullpath>/<username>

smithj myserver:/export/home/smithj


6. Ensure home directory shared.
/usr/sbin/share

- /export/home rw &quot;&quot;

If not create share by editing /etc/dfs/dfstab as shown:

share -F nfs -o rw /export/home


Bounce NFS daemon:
/etc/rc3.d/S15nfs.server stop \ start

On some systems this may be:
/etc/init.d/nfs.server stop \ start


7. Ensure /etc/passwd has proper path for each user home directory:
smithj:x:1179:441:test account:/home/smithj:/bin/csh

8. Ensure shared directories available by running: /usr/sbin/automount -v



From Client:
1. Log in as root and copy down config files from server to client.

Script Example below can be run from server after client configured:

#!/bin/csh
# moveit.sh
foreach host ( host1 host2 host3 )
echo &quot;Start update $host.&quot;
/bin/rdist -c /etc/inet/hosts ${host}:/etc/inet/hosts
/bin/rdist -c /.rhosts ${host}:/.rhosts
/bin/rdist -c /etc/hosts.equiv ${host}:/etc/hosts.equiv
/bin/rdist -c /etc/passwd ${host}:/etc/passwd
/bin/rdist -c /etc/shadow ${host}:/etc/shadow
/bin/rdist -c /etc/group ${host}:/etc/group
/bin/rdist -c /etc/auto_master ${host}:/etc/auto_master
/bin/rdist -c /etc/auto_home ${host}:/etc/auto_home
/bin/rdist -c /etc/defaultrouter ${host}:/etc/defaultrouter
end

Add these if need be:
/bin/rdist -c /etc/nsswitch.conf ${host}:/etc/nsswitch.conf
/bin/rdist -c /etc/inet/inetd.conf ${host}:/etc/inet/inetd.conf
/bin/rdist -c /etc/inet/services ${host}:/etc/inet/services
/bin/rdist -c /etc/inet/system ${host}:/etc/inet/system
/bin/rdist -c /etc/default/login ${host}:/etc/default/login
/bin/rdist -c /etc/syslog.conf ${host}:/etc/syslog.conf


2. Init client to recognize nfs and shares by:
a. run /usr/sbin/automount -v






Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top