LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-20-2008, 11:50 PM   #1
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Question Permissions Denied


Hi All,
I am using RHEL5 and I have two users on it. When i log in as Oracle user and try 'su user2' with password, it is allowing to switch users properly, but when i try any command on User2, it is giving the error "Permission denied".

Here is what , i tried :
[oracle@comp1 ~]$ ls
database Desktop
[oracle@comp1 ~]$ su user2
Password:
[user2@comp1 oracle]$ ls
ls: .: Permission denied

Could anybody please suggest me how can i manage the permissions for this?

Thank You in advance,
Kapil.
 
Old 11-21-2008, 12:50 AM   #2
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Hi.


Perform the same test, but before issuing that last "ls" you issue "pwd" and "ls -l", and post back the result.
 
Old 11-21-2008, 01:11 AM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Ok, su gives you the permissions of the new login but the path of the old login. So in this case you have user2's permissions but Oracle's path(so ls gets lost). If you use su - user2 (su space dash user2) this will give you the permissions and path of user2.
 
Old 11-21-2008, 01:12 AM   #4
nidhinmd
Member
 
Registered: Aug 2007
Location: Cochin, Kerala, India
Posts: 32

Rep: Reputation: 3
The 'permission denied' is displaying because user2 is on home directory of user 'oracle'. Normal users are not allowed to view the home directory of another user. Also use command 'su - user2' for switching to user2's home directory.
 
Old 11-24-2008, 05:06 PM   #5
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Thumbs up permission denied

Hi There,
thank you all.....
It was just a small thing but i was not getting it that time.

Thank You all once again,
Kapil.
 
  


Reply

Tags
denied, permissions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Permissions denied dms05 Linux - Newbie 7 11-03-2007 03:31 PM
VSFTPD > Permissions Denied for Users Tommis Linux - Server 1 09-13-2007 03:38 PM
permissions denied mrbrucelee Linux - General 8 06-29-2006 02:29 PM
ALL permissions denied for root larry_linux Linux - Newbie 9 09-13-2005 12:15 AM
Denied Permissions Jeebizz Slackware 4 09-05-2004 03:08 PM


All times are GMT -5. The time now is 07:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration