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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
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 | ||
|
|
![]() |
| Bookmarks |
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 | 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 |