Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

is a command to create a user account named serena, including a home directory and a description.

[root@RHEL5 ~]# useradd -m -d /home/yanina -c "yanina wickmayer" yanina
[root@RHEL5 ~]# tail -1 /etc/passwd
yanina:x:529:529:yanina wickmayer:/home/yanina:/bin/bash
Source by linux-training.be #
 
PREVIOUS NEXT
Tagged: #command #create #user #account #named #including #home #directory
ADD COMMENT
Topic
Name
2+4 =