LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 07-02-2005, 09:55 AM   #1
jsnch
Member
 
Registered: May 2005
Posts: 42

Rep: Reputation: 15
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
 
Old 07-02-2005, 10:53 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,507

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
vi /etc/passwd
 
Old 07-02-2005, 08:59 PM   #3
jsnch
Member
 
Registered: May 2005
Posts: 42

Original Poster
Rep: Reputation: 15
no, the passwd is account file, i need use asd login,and default directory to change $/usr/lib/ .not to change account.
 
Old 07-02-2005, 10:18 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,133

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
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.
 
Old 07-03-2005, 02:22 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,507

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
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.
 
Old 07-03-2005, 05:43 PM   #6
technopark02
Member
 
Registered: Feb 2005
Distribution: Solaris 8 - 11, JDS Linux 3.0
Posts: 99

Rep: Reputation: 15
Perhaps usermod -d /usr/lib/tt asd? Do a "man usermod" for detailed explanation
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to modify a directory inode xlh3110 Linux - General 2 12-03-2005 11:34 AM
Modify default user settings Fedora Core 4 klnasveschuk Fedora 1 07-22-2005 08:43 AM
Modify default date parameter in Search J.W. LQ Suggestions & Feedback 2 11-08-2004 12:03 PM
Modify the default desktop layout for users? linuxzouk Fedora 1 05-14-2004 12:34 PM
How can I modify the default configuration of gnome-terminalīs in RH 7.1 Coltrane Linux - Newbie 1 09-20-2001 02:04 AM


All times are GMT -5. The time now is 04:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration