nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

assignement in suse

This is a discussion on assignement in suse within the Shell scripting forums, part of the Development/Scripting category; Hey I must create this. anyone able to help Write an interactive script to create a number of users from ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 04:58 PM
Junior Member
User
 
Join Date: Apr 2008
My distro: Debian
Posts: 2
Rep Power: 0
signpost is on a distinguished road
Default assignement in suse

Hey I must create this. anyone able to help
Write an interactive script to create a number of users from a list in a file. You need to be able to:
- use the while statement and direction to read the user names
- Use the useradd command to create users
- Create home directories for all users
- Give ownership of directories to users

echo 'Add new user'
echo 'Enter your user name: '
read username
groupadd groupa
useradd -G groupa $username
cd /home
mkdir $username
chmod 755 $username
passwd $username
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
SuSe hangs on shutdown lacloai Linux software 5 08-09-2008 02:59 AM
Suse mailx pramkar Shell scripting 1 05-02-2008 01:52 AM
assignement in suse signpost Shell scripting 0 04-17-2008 04:55 PM
bash history...suse 10.1 grogf Linux software 4 10-30-2007 04:42 PM
suse 9 firewall click007 Getting started tutorials 5 08-15-2007 11:29 PM


All times are GMT +5.5. The time now is 04:55 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36