LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   accessing of directory using sudo users (https://www.linuxquestions.org/questions/fedora-35/accessing-of-directory-using-sudo-users-418264/)

abhis_mail2002 02-22-2006 12:46 AM

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

spooon 02-22-2006 01:42 AM

What are you trying to do? Are you abhijit? Did you add "sudo " in front of whatever command you were doing?

abhis_mail2002 02-22-2006 03:26 AM

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

spooon 02-22-2006 03:34 AM

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:

Originally Posted by abhis_mail2002
i typed sudo /home/temp

"/home/temp" is a directory, not a command, so of course that doesn't work


All times are GMT -5. The time now is 10:48 AM.