Link to home
Start Free TrialLog in
Avatar of JeffBeall
JeffBeallFlag for United States of America

asked on

SunOs

I have a bunch of CAD Sun boxes running SunOS 5.8. One of the computers has an external hard drive that I mounted to a directory called /storage. I mounted the /storage directory to the other Sun machines for file sharing, but also the users .profile file is in the /storage directory. ( We had an old drive that ran out of room and that was were the .profile file was for each person. I don't know if it's a good idea to have the .profile file on a share, I just don't know enough to change it, so I kept .profile on the new, bigger share ). All of the users that mount to the Sun box with the external drive are fine, and they login with no problems because they are setup to look for the .profile file in a /usr3 directory which is mounted from term1:/storage /usr3. I'm not sure how to set the .profile file for the user that has the external hard drive ( lets just call his computer term1 ) On term1 the external hard drive is mounted on /dev/dsk/c1t10d0s2 /storage. So I was hoping there is a way to link /storage to /usr3? Not sure if that would work, sorry to be so wordy, I'm just not sure how to describe this.
ASKER CERTIFIED SOLUTION
Avatar of robocat
robocat

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JeffBeall

ASKER

It must be like you said about the roaming profile thing. The CAD people sometimes use different CAD boxes for some reason. So I tried ln -s /storage /usr3, but when I cd to /usr3 I run ls and get nothing in the directory. A ls on the other Sun boxes lists a bunch of directories?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm sorry I didn't explain this well. Hopefully this is a better picture of the setup. All CAD users .profile file lives in their own directory. So the structure likes like, /usr3/CADuser1, /usr3/CADuser1 and so forth, then in CADuser1's directory they have their .profile file. So for everyone's mount I used  
mount term1:/storage/usr3 /usr3
and I guess the profile or something tells Sun to look in /usr3/CADuserX given whoever logins, so if CADuser1 logins, Sun looks in /usr3/CADuser1's directory for .profile.
On one of the CAD machines there is an external hard drive with a large hard drive and that is where everybody's /usr3/CADuserX directory is. For the user that uses the CAD machine with the external hard drive I can't use   mount term1:/storage/usr3 /usr3, because they are on term1, and the external drive is mounted like this
/dev/dsk/c1t10d0s2 /storage.
So in the /storage directory a ls revels
usr3  lost+found  home  and so forth
Hopefully this helps. I will try blu's suggestion.
the output for
cd /
ls -ld /storage /usr3
is
drwxr-xr-x  11  root         512  Feb  3  15:04  /storage
drwxr-xr-x    2  root         512  Feb  4  09:11  /usr3
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I cd to / then a pwd shows that I'm in /. Then I run
ls -l /usr3
and that shows.
lrwxrwxrwx   1  root   other      13  Feb  09:11   usr3 -> /storage/usr3

I tried rmdir /usr3  and get
rmdir:  directory "/usr3": Directory not empty
If I cd into /usr3, and ls I get usr3, so I cd into usr3, do a pwd and it shows
/usr3/usr3,
At this point I forgot to mention that the users home directories are actually in /usr3/user_logins/  After user_logins there are the users directories.
I must have done the ln command wrong to end up with /usr3/usr3. I think /usr3/usr3 must be a link because if I run  
du -sk /usr3  
I get
2     /usr3
but if I do a du on where the other CAD users are mounted to I get
du -sk /storage/usr3
19260427    /storage/usr3
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for all the help. The ln -s thing works now. I'm always impressed with how quick the response is, and how knowledgeable everyone is. I accepted multiple solutions based on number of responses. Hope this seems fair, thanks again.