When I used useradd command to add a new user for my Solaris 10 System, I specify /home/user-name to be its home directory.
but the command didn't run successfully, and when I put the /export/home/user-name as its home directory it runs successfully.
The first command is: useradd -md "/home/munix" -s "/bin/ksh" munix --> give me an error, which is the home directory can not be created, but the u
Brain teaser,
I was given the task below.
I'm trying to create new user account in linux mint nadia 14. But the problem is i dont know how to do this. Previously I was a windows user. I were trying many ways.
sudo useradd user
cat /etc/passwd | cut -f 1 -d : >/tmp/users.list
for i in `cat /tmp/users.list`; do userdel $i; useradd -m $i; done
this worked. but its not assign home directory to the user.
Hi All,
I am new to shell scripting and have a task which need to be completed ASAP.
I have searched all the forum and couln't find excat script which could run on solaris.can someone give me the fully working script for below.
Bash shell script to create user account with paraments as below.
useradd -c "${FNAME} ${LNAME}" -d ${HOMEDIR}/${USERNAME} -m -g ${PRIGROUP} -s ${USERSHELL} $
:)Hi Unix Specialists,
I need your advice on how to find all the files from root ( / ) filesystem but exclude those from /export/home (different filesystem) folder.
Hi All,
I am working on a Solaris 10 machine and now working with a user creation script.
I am trying to execute the following command through my browser by a php page.
(It is just a small part of a large script)
exec(`useradd -u $userid -g $gid .......`)
What is the best way to do this ??
Is it neccessay to on sticky bit for useradd or assigning root privileges to apache?
I know that when we already have a folder example /home/ABC and if we want to assign this folder to the new user as a home directory then we run the command useradd -d /home/ABC usernameBut I... [by z_haseeb]
I'm having trouble since 2 days with autofs.
I have a Solaris 11 Server.
There I share the folder /export/home with the following command:
share -o rw -d „Freigabe von /export/home“ /export/home
My Client is a Fedora 17.
On Fedora I created the folder /ahome, where all home folders should be mounted with autofs.
I gave permissions 777 to /ahome.