- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- can not create user HOMEDIR
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 08:26 AM
тАО12-26-2006 08:26 AM
i have some wear problem and need your help.
when i create new user, it always create user in root DIR, even in
/etc/default/useradd, i have a HOMEDIR
#default useradd options
HOMEDIR /home
#HOMEDIR /SUNHOME
GROUPID 20
INACT -1
EXPIRE
CHOWN_HOMEDIR no
and permision of /home is 777
as root i can cd to /home and mkdir with out a problem.
the server has been in service 3 yrs and never has problem like this before.
Thanks in advance.
Regards,
Tom
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 08:39 AM
тАО12-26-2006 08:39 AM
Re: can not create user HOMEDIR
What happens if you try to provide the home directory from command prompt ,
Ex: # useradd -U
Btw, what is version of the OS.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 08:47 AM
тАО12-26-2006 08:47 AM
Re: can not create user HOMEDIR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 08:50 AM
тАО12-26-2006 08:50 AM
Re: can not create user HOMEDIR
The os=HP-UX 11.11
if I use command line like this,
then user was created successful.
useradd -m -d /home/testuser testuser
if I use command like this
useradd -m testuser
it would create user in root as /testuser
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 08:55 AM
тАО12-26-2006 08:55 AM
Re: can not create user HOMEDIR
>useradd -m testuser
the command above will create dir /testuser since the default for the "-d" option is base_dir/login. See the man page for useradd(1M) for details and read the text for the "-d" option.
~cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 09:00 AM
тАО12-26-2006 09:00 AM
Re: can not create user HOMEDIR
Though not have much idea at this point of time,
But you can check this thread as well:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1012891&admit=-682735245+1167170130569+28353475
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 09:03 AM
тАО12-26-2006 09:03 AM
Re: can not create user HOMEDIR
useradd -m option will create the directory automatically , as per the username specified. ( As mentioned above by Sandman!. )
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 09:22 AM
тАО12-26-2006 09:22 AM
Re: can not create user HOMEDIR
this box has been working for the last 3 years and this just happens last few weeks.
the command
#useradd -m testuser will create user in default home DIR " /home"
somehow it did not pickup the default in this file.
/etc/default/useradd
for now, i just add -d in the script. but if someone has any idea
please let me now,
Thank you,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 09:58 AM
тАО12-26-2006 09:58 AM
Re: can not create user HOMEDIR
# useradd -D
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 10:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 10:05 AM
тАО12-26-2006 10:05 AM
Re: can not create user HOMEDIR
~hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 12:28 PM
тАО12-26-2006 12:28 PM
Re: can not create user HOMEDIR
it works well after removed the line.
Would someone please explain as why that comment line would cause the problem?
Thanks,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 12:53 PM
тАО12-26-2006 12:53 PM
Re: can not create user HOMEDIR
> Would someone please explain as why that comment line would cause the problem?
Certainly. Clearly, the presence of the pound sign character is not interpreted as indicative of a comment line that should be skipped. Hence, the last declaration for the keyword HOMEDIR was processed and since '/SUNHOME' doesn't exist, the variable's value became a default of root's home directory.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2006 01:08 PM
тАО12-26-2006 01:08 PM
Re: can not create user HOMEDIR
Regards,
Tom