- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unable to create new user ?
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
Forums
Discussions
Discussions
Discussions
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
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-02-2005 04:52 AM
12-02-2005 04:52 AM
I am unable to create a new user:
Here is the details:
-------------------
# useradd -u 520 -s/usr/bin/ftpshell -d /interfaces -m -g ftponly XIFTP
'/interfaces' is not a valid directory
I have tried with sam also , but same error.
---------------------------------------------
The directory is present ,still giving error:
# bdf | grep interfaces
/dev/vg04/lvol4 10485760 7629882 2677438 74% /interfaces
# ls -l | grep interfaces
# ls -l | grep interface
drwxrwxrwx 19 dv2adm sapsys 3072 Nov 23 01:33 interfaces
------------------------
System: hp-ux 11i , N Class.
Please help asap.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 04:56 AM
12-02-2005 04:56 AM
Re: Unable to create new user ?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 05:00 AM
12-02-2005 05:00 AM
Re: Unable to create new user ?
I believe that your problem is the you have specified the '-m' option to enable directory creation.
The man pages note that "-m Creates the home directory for the new login if it does not exist. If the home directory exists, the directory must have read and execute permission by group, where group is the primary group of the new login. The -m option must be used to create a home directory."
It appears the group of the user that you are trying to create does not match that of the directory.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 05:01 AM
12-02-2005 05:01 AM
Re: Unable to create new user ?
Thats s pasting mistake ,
Here it is again :
# ls -l | grep interfaces
drwxrwxrwx 19 dv2adm sapsys 3072 Nov 23 01:33 interfaces
Pls suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 05:09 AM
12-02-2005 05:09 AM
Re: Unable to create new user ?
Also if the directory is a automounter or NFS mounted FS , can I able to create a user specifying that directory as a home dir.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 05:17 AM
12-02-2005 05:17 AM
SolutionI urge you to look at the 'useradd(1M)' manpages. It is noted that with NFS, "Errors may occur with the -m or -k options if the indicated directory is within an NFS mounted file system that does not allow root privileges across the NFS mount, and the directory or files within the directory do not have sufficient permissions."
I also urge you to echo the return status of any failed command in situations like this. Together with the manpage documentation you can best identify the exact reason for failure.
http://docs.hp.com/en/B2355-60127/useradd.1M.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 05:24 AM
12-02-2005 05:24 AM
Re: Unable to create new user ?
Thx for the quick post .
Its a local filesystem only.
# bdf -l | grep interfaces
/dev/vg04/lvol4 10485760 7629882 2677438 74% /interfaces
Also I am now able to create the user , with this command :
# useradd -u 520 -s/usr/bin/ftpshell -d /interfaces -g sapsys XIFTP
And now trying to change the primary group , to ftponly , and getting this error:
# usermod -g ftponly XIFTP
Cannot modify user 'XIFTP': Home directory '/interfaces' is shared
I doubt if permission 777 to the dir , is causing problem.
pls suggest.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 06:17 AM
12-02-2005 06:17 AM
Re: Unable to create new user ?
You can try this command instead , to add the group:
# usermod -G ftponly XIFTP
and hope it will not give the error and it will work.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 06:22 AM
12-02-2005 06:22 AM
Re: Unable to create new user ?
Again, have a look at the manpages, this time for 'usermod(1M)'. Try a directory permission of 775.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 08:22 AM
12-02-2005 08:22 AM
Re: Unable to create new user ?
Thanks all.