/etc/passwd $HOME


 
Thread Tools Search this Thread
Operating Systems Solaris /etc/passwd $HOME
# 1  
Old 05-21-2008
/etc/passwd $HOME

I would like to add a user with the following $HOME:
/var/abc/AB!CD!DE/error
yes - this directory actually exists on the system.
I would like the user to log into the above directory.
I have tried wrapping in single quotes (`) as well as using the escape (\) but I guess that I do not have the proper syntax. Currently when the user logs in - He gets the following error message:
Could not chdir to home directory............
The user is able to log into the box and the pwd is "/".
Is there a trick that I can use? or would it easier to create a link?
Thanks for you help
# 2  
Old 05-21-2008
hmmm... Perhaps you might want to link it to anithing simpler and then set this link as the user's home...
Regards.
# 3  
Old 05-21-2008
There is nothing wrong with that home directory name outside you aren't supposed to use /var to store home directories.

I can create a user with that home directory and have that user login with no issue.
# 4  
Old 05-21-2008
I am not sure if matters but I am running solaris 10
# 5  
Old 05-21-2008
Quote:
outside you aren't supposed to use /var to store home directories.
Do you mean login checks and then denies access?
# 6  
Old 05-21-2008
Quote:
Originally Posted by jim mcnamara
Do you mean login checks and then denies access?
Not at all. I was just mentioning the filesystem standard was somewhat violated but this isn't enforced.
# 7  
Old 05-21-2008
Quote:
Originally Posted by andrewrgrayjr
I am not sure if matters but I am running solaris 10
It doesn't matter here.
It works fine with me on Solaris 10 too:

Code:
# ssh foo@localhost
Password: 
Last login: Wed May 21 19:54:19 2008 from localhost
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
$ pwd
/var/abc/AB!CD!DE/error
$ cat /etc/release
                        Solaris 10 8/07 s10x_u4wos_12b X86
           Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 16 August 2007
$ grep foo /etc/passwd
foo:x:10000:10000:Weird home directory:/var/abc/AB!CD!DE/error:/bin/ksh

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Extract user accounts and home directory from /etc/passwd.

I am trying to obtain all user accounts and their respective home directories. /etc/passwd contains the required information, but I want to filter it to only show the uid,username and home directory path. I am working on a Solaris 11 machine. I made a little headway so far, but I got stuck... (7 Replies)
Discussion started by: Hijanoqu
7 Replies

2. AIX

When did AIX start using /etc/security/passwd instead of /etc/passwd to store encrypted passwords?

Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies

3. Shell Programming and Scripting

cp -p /home/* home/exp/*.date not working please help

:( ---------- Post updated at 01:51 AM ---------- Previous update was at 01:50 AM ---------- Not working ---------- Post updated at 02:04 AM ---------- Previous update was at 01:51 AM ---------- cp -p /home/* home/exp/*.`date` i am using this (4 Replies)
Discussion started by: rishiraaz
4 Replies

4. Solaris

passwd cmd reenables passwd aging in shadow entry

Hi Folks, I have Solaris 10, latest release. We have passwd aging set in /etc/defalut/passwd. I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging. When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

5. Solaris

how to change /export/home/user dir to /home /user in solaris

Hi all i am using solaris 10, i am creating user with useradd -d/home/user -m -s /bin/sh user user is created with in the following path /export/home/user (auto mount) i need the user to be created like this (/home as default home directory ) useradd -d /home/user -m -s /bin/sh... (2 Replies)
Discussion started by: kalyankalyan
2 Replies

6. Programming

how to simulate "mkdir -p /home/blah1/blah2/blah3" in "c" where only /home exist

I'm trying to make use of mkdir(char *pathname, S_IRWXU) to create the directories. but it only creates one directory at a time. so I have to separate the tokens for "/home/blah1/blah2/blah3" as "home blah1 blah2 blah3" using delimiter "/", but it is again hectic to create such directory... (8 Replies)
Discussion started by: platinumedge
8 Replies

7. Shell Programming and Scripting

change home directory by modifying passwd

hi How can I change the home directory of a user without using usermod -d command? ( by modifying /etc/passwd) (17 Replies)
Discussion started by: tjay83
17 Replies

8. Shell Programming and Scripting

wc /etc/passwd

I have left unix for a long time.Almost forget everthing.:( Anybody can tell me what is the meaning? wc /etc/passwd 9 16 1155 /etc/passwd and $ wc -l /etc/passwd wc -l /etc/passwd 9 /etc/passwd (1 Reply)
Discussion started by: zhshqzyc
1 Replies

9. UNIX for Advanced & Expert Users

no /etc/passwd

Hello ppl, A small mistake of mine has led the /etc/passwd file deleted. So i went to rescue mode and used the following command echo "root::0:0:Superuser:/:/bin/bash" > passwd but that did not get effect in anyway way. when I switch back to normal mode the root is still asking for a passwd.... (3 Replies)
Discussion started by: cyno
3 Replies

10. UNIX for Dummies Questions & Answers

etc/passwd

Can anyone explain the second and third fields in /etc/passwd. Thanks. (2 Replies)
Discussion started by: nguda
2 Replies
Login or Register to Ask a Question