LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-22-2006, 12:46 AM   #1
abhis_mail2002
Member
 
Registered: Oct 2004
Posts: 61

Rep: Reputation: 15
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
 
Old 02-22-2006, 01:42 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
What are you trying to do? Are you abhijit? Did you add "sudo " in front of whatever command you were doing?
 
Old 02-22-2006, 03:26 AM   #3
abhis_mail2002
Member
 
Registered: Oct 2004
Posts: 61

Original Poster
Rep: Reputation: 15
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
 
Old 02-22-2006, 03:34 AM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
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

Last edited by spooon; 02-22-2006 at 03:36 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Accessing Home Directory fish2ways SUSE / openSUSE 2 12-10-2005 01:51 PM
modem users: how are u accessing the net? webazoid Linux - Software 9 08-17-2004 03:20 AM
Accessing automount directory using chroot prakashpms Linux - Security 1 06-24-2004 05:17 PM
Problems accessing the home directory opensource Mandriva 1 01-03-2004 04:37 PM
Accessing the Active Directory GoRinNoSho Linux - Newbie 3 06-27-2003 09:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration