accessing of directory using sudo users
hi all
i ahve created a user called to be abhijit, to whom i want to give root priviliges. i chaged in /etc/sudoers as abhijit ALL=(ALL) ALL but after this i am not able to access directory in my /home/temp where i ahve something to be accessed |
What are you trying to do? Are you abhijit? Did you add "sudo " in front of whatever command you were doing?
|
yes i did .
after that i logged into username : abhijit and i am trying to access /home/temp which has been created by jass. how can i access a directory created by other user. i typed sudo /home/temp command not found was the error |
you can either:
1. do whatever you need to do with that directory without needing to change to it (i.e. "sudo ls /home/temp", "sudo less /home/temp/foo", "sudo cp /home/temp/foo /bar", etc.) 2. open up a shell as root: "sudo su", and then you can change to it "cd /home/temp" and do whatever as root Quote:
|
All times are GMT -5. The time now is 10:48 AM. |