- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- add a 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
06-25-2008 03:06 AM
06-25-2008 03:06 AM
add a user
root:/>useradd -d /DT02 toto
'/DT02' is not a valid directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 03:10 AM
06-25-2008 03:10 AM
Re: add a user
post the command output
#ll /
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 04:27 AM
06-25-2008 04:27 AM
Re: add a user
useradd -d /DT02 -m toto
But I dont think it will make any difference if this directory already exists.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 04:35 AM
06-25-2008 04:35 AM
Re: add a user
-rw------- 1 root sys 10 May 23 15:27 .mozilla-license
-r--r--r-- 1 bin bin 965 Feb 15 2007 .profile
drwxr-xr-x 2 root sys 96 May 22 14:38 .ssh
drwxr-xr-x 6 root sys 96 Apr 10 12:50 .sw
drw-r-xrw- 3 root root 96 Jun 24 17:13 DT01
drwxrw-rw- 3 yao root 96 Jun 25 12:13 DT02
drwxr-xr-x 3 root root 96 Jun 23 10:24 DT03
drwxr-xr-x 3 root root 96 Apr 17 12:08 U01
-rw-rw-rw- 1 root sys 2176 Apr 17 11:32 U01paths
drwxr-xr-x 3 root root 96 Apr 17 12:12 U02
-rw-rw-rw- 1 root sys 3362 Apr 17 11:36 U02paths
drwxr-xr-x 3 root root 96 Apr 17 11:06 appl
-rw-rw-rw- 1 root sys 641 Apr 17 12:19 bdffile
lrwxr-xr-x 1 bin bin 8 Apr 10 12:50 bin -> /usr/bin
drwxrwxrwx 2 root sys 96 Apr 10 16:34 cdrom
-rwxr-xr-x 1 root sys 145 May 19 12:12 compt
dr-xr-xr-x 21 bin bin 8192 Jun 23 08:10 dev
dr-xr-xr-x 36 bin bin 8192 Jun 25 11:52 etc
-rw-r--r-- 1 root sys 542 Apr 22 15:56 fstab.back
-rw-r--r-- 1 root sys 414 Apr 17 11:11 fstab.old
-rw-r--r-- 1 root sys 458 Apr 17 12:14 fstab.old1
drwxr-xr-x 17 root root 8192 Jun 23 17:40 home
-rw-r--r-- 1 root sys 0 Jun 16 15:46 ioscan
lrwxr-xr-x 1 bin bin 8 Apr 10 12:50 lib -> /usr/lib
drwxr-xr-x 2 root root 96 Apr 10 12:39 lost+found
-rw-r--r-- 1 root sys 0 Jun 23 10:24 mount
dr-xr-xr-x 1 root root 1 Jun 20 03:15 net
dr-xr-xr-x 76 bin bin 8192 Apr 10 15:33 opt
-r--r--r-- 1 root sys 645 Apr 22 15:57 passwd.back
dr-xr-xr-x 14 bin bin 8192 Apr 10 16:50 sbin
dr-xr-xr-x 8 bin bin 8192 Jun 20 03:15 stand
drwxrwxrwt 4 root root 8192 Jun 25 12:09 tmp
-rw-r--r-- 1 root sys 0 Jun 25 11:01 useradd
dr-xr-xr-x 22 bin bin 8192 Apr 10 15:24 usr
dr-xr-xr-x 27 bin bin 8192 Apr 10 16:20 var
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 04:46 AM
06-25-2008 04:46 AM
Re: add a user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 05:25 AM
06-25-2008 05:25 AM
Re: add a user
-r--r--r-- 1 bin bin 965 Feb 15 2007 .profile
drwxr-xr-x 2 root sys 96 May 22 14:38 .ssh
drwxr-xr-x 6 root sys 96 Apr 10 12:50 .sw
drw-r-xrw- 3 root root 96 Jun 24 17:13 DT01
drwxrw-rw- 3 yao root 96 Jun 25 12:13 DT02
drwxr-xr-x 3 root root 96 Jun 23 10:24 DT03
drwxr-xr-x 3 root root 96 Apr 17 12:08 U01
-rw-rw-rw- 1 root sys 2176 Apr 17 11:32 U01paths
drwxr-xr-x 3 root root 96 Apr 17 12:12 U02
-rw-rw-rw- 1 root sys 3362 Apr 17 11:36 U02paths
drwxr-xr-x 3 root root 96 Apr 17 11:06 appl
-rw-rw-rw- 1 root sys 641 Apr 17 12:19 bdffile
lrwxr-xr-x 1 bin bin 8 Apr 10 12:50 bin -> /usr/bin
drwxrwxrwx 2 root sys 96 Apr 10 16:34 cdrom
-rwxr-xr-x 1 root sys 145 May 19 12:12 compt
dr-xr-xr-x 21 bin bin 8192 Jun 23 08:10 dev
dr-xr-xr-x 36 bin bin 8192 Jun 25 11:52 etc
-rw-r--r-- 1 root sys 542 Apr 22 15:56 fstab.back
-rw-r--r-- 1 root sys 414 Apr 17 11:11 fstab.old
-rw-r--r-- 1 root sys 458 Apr 17 12:14 fstab.old1
drwxr-xr-x 17 root root 8192 Jun 23 17:40 home
-rw-r--r-- 1 root sys 0 Jun 16 15:46 ioscan
lrwxr-xr-x 1 bin bin 8 Apr 10 12:50 lib -> /usr/lib
drwxr-xr-x 2 root root 96 Apr 10 12:39 lost+found
-rw-r--r-- 1 root sys 0 Jun 23 10:24 mount
dr-xr-xr-x 1 root root 1 Jun 20 03:15 net
dr-xr-xr-x 76 bin bin 8192 Apr 10 15:33 opt
-r--r--r-- 1 root sys 645 Apr 22 15:57 passwd.back
dr-xr-xr-x 14 bin bin 8192 Apr 10 16:50 sbin
dr-xr-xr-x 8 bin bin 8192 Jun 20 03:15 stand
drwxrwxrwt 4 root root 8192 Jun 25 12:09 tmp
-rw-r--r-- 1 root sys 0 Jun 25 11:01 useradd
dr-xr-xr-x 22 bin bin 8192 Apr 10 15:24 usr
dr-xr-xr-x 27 bin bin 8192 Apr 10 16:20 var
[SVR-EDW]root:/>ls -l / | grep tmp;ls -l /var | grep tmp
drwxrwxrwt 4 root root 8192 Jun 25 12:09 tmp
drwxrwxrwx 8 root root 8192 Jun 25 12:42 tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 06:40 AM
06-25-2008 06:40 AM
Re: add a user
drwxrw-rw- 3 yao root 96 Jun 25 12:13 DT02
chmod +x /DT02 make it executable.
regards,
mustafa