Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-02-2005, 09:55 AM
|
#1
|
|
Member
Registered: May 2005
Posts: 42
Rep:
|
how can modify user login's default directory?
when one user 'asd' login in solaris, default directory is
$pwd
$/export/asd
if i want to the user default directory change to $/usr/lib/tt
how to do ? thanks
|
|
|
|
07-02-2005, 10:53 AM
|
#2
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
vi /etc/passwd
|
|
|
|
07-02-2005, 08:59 PM
|
#3
|
|
Member
Registered: May 2005
Posts: 42
Original Poster
Rep:
|
no, the passwd is account file, i need use asd login,and default directory to change $/usr/lib/ .not to change account.
|
|
|
|
07-02-2005, 10:18 PM
|
#4
|
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,816
Rep: 
|
The home directory is the 6th field of /etc/passwd -- you'll need to change that to change the directory the user starts in on login.
|
|
|
|
07-03-2005, 02:22 AM
|
#5
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
Quote:
|
no, the passwd is account file, i need use asd login,and default directory to change $/usr/lib/ .not to change account.
|
If by "default directory" you really mean "home directory", /etc/passwd is the file to modify.
"$/usr/lib" is a syntax error, I guess you mean "/usr/lib".
/usr/lib is certainly a wrong location for some user home directory, as it is certainly not writeable by 'asd'.
Please clarify your needs.
|
|
|
|
07-03-2005, 05:43 PM
|
#6
|
|
Member
Registered: Feb 2005
Distribution: Solaris 8 - 11, JDS Linux 3.0
Posts: 99
Rep:
|
Perhaps usermod -d /usr/lib/tt asd? Do a "man usermod" for detailed explanation
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:56 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|