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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mount Points

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
0
0
US
Hello, I have a directory /export/home/cots that I need users to be able to access simply by doing a cd /cots.

I am using SunOS 5.6 and not using NIS with this server. I
I am new to this concept.

In Windows I guess I could use a shortcut or a mapped drive in Novell. Others have suggested using an automount file for this. I am not sure how to do this.

Thanks for your advice. Michael

MCSE NT\2000, UNIX, Novell
Java, JSP, ASP, VB
 
Hi,
Wont it be enough to create a directory named cots in / and create a link to the directory /export/home/cots as
ln -s /export/home/cots /cots
 
Kris,

Thanks for replying. Maybe your suggestion will do it. The key is that as users log into the system they can access the directory simply by doing a cd to /cots.

Do links just work when logging in from the local machine?

Thanks again for confirming! Michael

MCSE NT\2000, UNIX, Novell
Java, JSP, ASP, VB
 
After testing on a linux system, this (a link)looks like it will do the trick! Never created one lin UNIX before.

I guess sometimes the best answer is not always a complex one. :)

Thanks for your help Kris! Michael

MCSE NT\2000, UNIX, Novell
Java, JSP, ASP, VB
 
you could always edit the /etc/.login and add an alias for 'cots' to 'cd /export/home/cots'

then they wouldn't need to type in 'cd /'
 
You can set CDPATH variable in .profile or /etc/profile.
CDPATH=/export/home/cots
Command "cd" will move you to the /export/home/cots directory.

If you want you can set CDPATH to:
CDPATH=/export/home.
Command "cd cots" will move you to the /export/home/cots directory.

Vlad
 
Another trick:
In user's shell startup files, define a env. variable which points to ur directory. Let them login and they can switch to the directory with a single cd command!

Example:
In ur shell startup file:-
COTS=/export/home/cots
export COTS

The users will switch to the cots directory using:-
cd $COTS

Regds,

- Hemant
Networking and Systems Integration Group
Satyam Computer Services Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top