User creation in CentOS


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers User creation in CentOS
# 1  
Old 09-14-2014
User creation in CentOS

I am trying to create 10 users, each with a mydocuments directory in their home directory and this month's calendar in each mydocuments directory. I know there is a way using /etc/skel, but do not understand how. Any and all help will be appreciated. If you could give me the command lines with description would be great. NOT just looking for the answer, but to learn from it also. Thank you.

Moderator's Comments:
Mod Comment edit ba bakunin: Subject lines like "Please help" will - even more so when accompanied by a wild bunch of exclamation marks - not get you more or better answers. They just let you look more desperate. Please use descriptive thread titles.

Last edited by bakunin; 09-15-2014 at 05:00 AM..
# 2  
Old 09-14-2014
If the newusers script is available on your system, you can use it to batch create all of your users. Otherwise you can use the useradd utility, with the appropriate command line options, in a simple shell script.

The /etc/skel directory contains files and directories (folders) that will be copied in the new user's home directory (login directory), when that user is created with useradd or other commands.

So create a mydocuments directory in /etc/skel, add this month's calendar to the mydocuments directory, and each user's home directory will be populated with a mydocuments directory and it's contents as the user account is created.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Automatic User Creation

Hello everybody, I'm new to sh scripting and relatively new to linux in general which is why I've come here for assistance. I have been attempting to make a shell script which automatically creates user accounts from a file list and further creating directories and moving files into it etc.... (3 Replies)
Discussion started by: charlieabee
3 Replies

2. AIX

User creation

hi seniors i want to create the users like when the user try to login it should not should not promt for passwd is it possible to create users like this please help me (6 Replies)
Discussion started by: senmak
6 Replies

3. Solaris

Need help with user creation

Hello guys, i have a problem where i cant create a user and here some problem that i encounter. 1. /etc/passwd seems locked. 2. getting this error UX: useradd: ERROR: Cannot update system files - login cannot be created. # useradd -u 47367 -g 1084 -c "user123" -d /local/home/user123 -s... (2 Replies)
Discussion started by: brew
2 Replies

4. Red Hat

User creation

Hi Thanks in advance. How to create a user without useradd command ?? (1 Reply)
Discussion started by: krish4linux
1 Replies

5. UNIX for Dummies Questions & Answers

Need to create a restricted user(Centos)

Hi, I am a newbie to Linux and I want to create a user which can only execute network config commands like ifconfig and ping(to check the config). The following is what I did but failed. 1) Created a group called 'netconfig'. 2) added a user named 'user'. 3) added user to the 'netconfig'... (4 Replies)
Discussion started by: ankushpandit
4 Replies

6. Solaris

Reg. user creation

Hi Friends, I want to create a user along with user name,user id,home directory,group and shell in single command is it possible and i want to assign root permission to a user eg- to create user permission,format and creating slices, cron jobs. Thanks in Advance. (3 Replies)
Discussion started by: kurva
3 Replies

7. Solaris

Reg user creation

I created a user in my Solaris box , but after creating am not able to login with that user name . Can anyone tell me that i have to change any files for enabling the login. (2 Replies)
Discussion started by: rogerben
2 Replies

8. Solaris

User Creation

i am trying to create a user on solaris 10. it is not taking user name with more than ten characters. which file i need to edit to do this setting. (4 Replies)
Discussion started by: raynu.sharma
4 Replies

9. Solaris

User creation

Hi all, I want to create one user with full permissions to one directory called /opt/tivoli/tsm/client/ba/bin. Name for the user Tivoli Thanks & Regards Babu (7 Replies)
Discussion started by: lbreddy
7 Replies

10. UNIX for Dummies Questions & Answers

user creation problem

hello, Actually I want to create a user for our brower based custom application for the mail access from our mailserver(linux). I create user dummy and I granted all the privileages to dummy user and made dummy equivelent to root and if I tried to create a another user logging as dummy ... (1 Reply)
Discussion started by: jarkvarma
1 Replies
Login or Register to Ask a Question