Here's the deal guys....
I have to write a bash script that will allow a user to create a new account.
So that includes adding a new line to the passwd file, creating his home dir, setting permissions for his home dir and adding his password to the shadow file.
The problem is that for adding a new line to the passwd file, shadow file, and setting permissions you have to have root acces. I tried using sudo in the script but I soon realized that the user has to be in the sudoers file. So an unknown usr can't use this script.
Is there any way I can rewrite this script so any user can use it..???
Can't I make this script run in a root shell...??...And if so...How do I do it..??
Thx for your cooperation