I wanted to install mailarchiva on my ubuntu box but i don't want to permanent mount the folder to my ubuntu box as i just need it to access some file during the setup.
here are the command to temp mount the folder to your ubuntu box
1) make a dir , i choose to do in mnt as easier to remember
mkdir /mnt/setupfile
2) let start to mount the file from window share to my ubuntu box
sudo mount -t cifs //win_share_location/folder /mnt/setupfile -o user=username,domain=domain,pass=password
done ! :)
once you are done and wish to un-mount the folder just type
sudo umount /mnt/setupfile
Wednesday, November 21, 2012
sudoers in ubuntu
For linux beginner like me i found it is kinda hard when working on a non-gui enviroment. I've created a new user in my ubuntu box for mail-archiva. When i try to sudo and it return with the error message "not in sudoers list". It does give me a headache to switch account back and forth.
that should do the trick :)
Here are the simple fix (the text in bold is command line) :-
1) groups <username> ; to check the group that the user account are currently associated with.
2) sudo adduser <username> sudo ; to add the new user to the sudo group
that should do the trick :)
Subscribe to:
Posts (Atom)