Linux / UNIX Tech Support Forum
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 ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
| Sponsored Links | ||
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SuSe hangs on shutdown | lacloai | Linux software | 6 | 13-10-2008 05:14 AM |
| Suse mailx | pramkar | Shell scripting | 1 | 02-05-2008 01:52 AM |
| assignement in suse | signpost | Shell scripting | 0 | 17-04-2008 04:55 PM |
| bash history...suse 10.1 | grogf | Linux software | 4 | 30-10-2007 04:42 PM |
| suse 9 firewall | click007 | Getting started tutorials | 5 | 15-08-2007 11:29 PM |