Computing.Net > Forums > Linux > Bash shell programming

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Bash shell programming

Reply to Message Icon

Name: frank.hertz
Date: November 19, 2002 at 08:52:56 Pacific
OS: Linux Mandrake
CPU/Ram: 64
Comment:

I need to create two AWK files, to create and delete users in a Linux system.
They must be two separate files; ‘createuser’ and ‘deleteuser’.

Demands for ‘createuser’:
- creates a user with a unique ID automatically
- the user is to enter a group which either exists OR may be created here
- the user must be given a password so that he can login to the system

Demands for ‘deleteuser’:
- deletes a user and his dir

The built-in adduser and deluser (in the bash) may not be used!

HELP PLEASE!



Sponsored Link
Ads by Google

Response Number 1
Name: ArnoldF
Date: November 20, 2002 at 09:37:07 Pacific
Reply:

It is inadvisable to directly edit /etc/passwd.

why not useradd, userdel, groupadd, groupdel?

why awk?


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Bash shell programming

linux bash shell script www.computing.net/answers/linux/linux-bash-shell-script/25054.html

shell programming www.computing.net/answers/linux/shell-programming/21914.html

Link GUI pico to bash shell www.computing.net/answers/linux/link-gui-pico-to-bash-shell/4744.html