Add directory by the root to a new user (script)
I'm working on a script which create users automatically with some parameters. So i would like to ask how can i create repertories in the home directory of the new user
+ the script is used with sudo
# ./sudo name_script
My syntax is:
# after the creation of the new_user i tried this syntax:
# when i check if the new_directory has been created
# i find it in the current user not in the new_user.
#I also tried this syntax,but the new_directory doesn't exist too.
#I supposed that now i'm in the new_user
su -l new_user
#The creation of users woks good.
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate of http://www.linuxquestions.org/questi...pt-4175444594/.
|All times are GMT -5. The time now is 03:03 AM.|