useradd question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers useradd question
# 1  
Old 03-14-2006
useradd question

The man pages for useradd show the -k flag as a option, problem is I don't know what the description means. Could someone explain what "an alternative skel directory" is?
Is skel an acronym?
Thanks


From the man page:
-k, --skel skeldir
Specify an alternative skel directory. This option is only
valid, if the home directory for the new user should be cre‐
ated, too. If not specified, the default from
/etc/default/useradd or /etc/skel is used.
# 2  
Old 03-14-2006
The /etc/skel directory is where files template are stored for new users, for example, you will find the .profile file under /etc/skel. So when you will create a new user, it will copy /etc/skel/.profile file to your new user home directory. The -k option let you specify another directory where your template are.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Useradd and passwd in HP-UX

Dear All, I have Perl Script which previously running on solaris and now our system is moved to HP UX. The script is creating the users on unix and database. 1. When we are creating the new user, useradd keep newly created account in locked state 2. In script we were using Passwd... (5 Replies)
Discussion started by: yadavricky
5 Replies

2. Solaris

useradd

I want to creat a 27 logins in solaris.Can anyone tell me how to write a script for that so that i create at a time for all 27 people. Thanks to guide me. (6 Replies)
Discussion started by: kkalyan
6 Replies

3. Red Hat

Useradd issue

Hi all, I'm using Red Hat Enterprise Linux Server release 5 (Tikanga) I have a query regarding adding users, I have a requirement of creating multiple users at one go. In order to do so I have written a shell script which would create a user and set the password at one go. Now the problem... (6 Replies)
Discussion started by: maverick_here
6 Replies

4. Solaris

useradd

if useradd command is deleted in solaris how do we add user (3 Replies)
Discussion started by: vivek_ng
3 Replies

5. UNIX for Advanced & Expert Users

useradd?

Hi Experts, when using useradd command, what are the necessary options/arguments to be included? Please advice. (4 Replies)
Discussion started by: etcpasswd
4 Replies

6. Shell Programming and Scripting

useradd

Gurus, I need to add a user to all the machines. I need a script to do this. I did one but it does not allow me to su to root within a ssh session i open. It exists saying su: Sorry. Please let me know how i can do it. I do not have the freedom of using sudo either. Regards (4 Replies)
Discussion started by: earlysame55
4 Replies

7. Solaris

useradd

Hi, I need to add a new user who will only be able to access one single folder on my Solaris 9 system. Can this be achieved by using just useradd or do i need to fiddle with auth_attr table? TIA, Selma (4 Replies)
Discussion started by: Selma
4 Replies

8. Solaris

useradd permissions

hi everybody, can you please answer this question : when making a listing i have this : -r-xr-xr-x 2 root sys 32276 Feb 14 2001 useradd Why in this case a simple user can't execute this command? regards! (2 Replies)
Discussion started by: hmaiida
2 Replies

9. UNIX for Advanced & Expert Users

useradd

Hi. due to some needs i gave a user the premission to use useradd command with sudo. i want to know if there is a way to let him set the initial password, without giving him the premission to use passwd command as root (sudo). maybe a way to set a default password for all the new users that... (2 Replies)
Discussion started by: dorilevy
2 Replies

10. UNIX for Dummies Questions & Answers

useradd

I work on some hp ux 11.00 Servers. i have to add an user. i use the useradd command like follows: useradd -u 72022 -g 71095 -c " comment " -d /PACKAGE_NAME/home/username -s /usr/bin/sh username The command returns with error 3. The manpage means value number 3: Invalid argument supplied to an... (6 Replies)
Discussion started by: ortsvorsteher
6 Replies
Login or Register to Ask a Question