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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-04-2005, 12:40 AM
|
#1
|
|
LQ Newbie
Registered: May 2005
Posts: 20
Rep:
|
Permission denied for root user
Hi everybody,
When i login as a root in redhat9, and write any command such as /boot/grub/grub.conf or gedit /etc/inittab, system gives following message
-bash: permission denied.
Plz help me.
|
|
|
|
07-04-2005, 01:18 AM
|
#2
|
|
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151
Rep:
|
Do you mean logged in as the root user or logged in as a regular user using su in the terminal?
If the second option is the case, try using:
su -
instead of just
su
|
|
|
|
07-04-2005, 01:59 AM
|
#3
|
|
Member
Registered: May 2005
Location: Australia
Distribution: SUSE 10.1
Posts: 62
Rep:
|
Are you sure you have permissions to write the file. Do a ls -l on files and make sure you don't have some like r--r--r--. Then you have to change the permission using the chmod command.
|
|
|
|
07-04-2005, 02:46 AM
|
#4
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,915
|
Re: Permission denied for root user
Quote:
Originally posted by shujja
Hi everybody,
When i login as a root in redhat9, and write any command such as /boot/grub/grub.conf or gedit /etc/inittab, system gives following message
-bash: permission denied.
Plz help me.
|
Well, for the first "command" I understand why you'd get
permission denied, /boot/grub/grub.conf is most likely not
executable, and therefore even root can't run it.
For the "gedit /etc/inittab" I'd like to see a copy & paste of the
actual screen session.
Cheers,
Tink
|
|
|
|
07-04-2005, 05:02 AM
|
#5
|
|
Member
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183
Rep:
|
Check the permissions of the files,if proper pemissions are not there set the permission as root.
|
|
|
|
07-04-2005, 07:47 AM
|
#6
|
|
LQ Newbie
Registered: Jul 2005
Location: India
Posts: 2
Rep:
|
hi,
I deleted a user after upgrading from redhat 8 to 9 and I cannot delete the Xauthority files of that user even as root from both the Xwindow and console(bash).
I got the same error access denied.
|
|
|
|
07-05-2005, 02:11 AM
|
#7
|
|
LQ Newbie
Registered: May 2005
Posts: 20
Original Poster
Rep:
|
Hi friends,
thanks for taking interest and providing best help.
i have used the su command as root, which is
[root@localhost root]#su
Password  type root password)
incorrect login (system replies)
same happen with the command su -
plz tell me the right way of logging in as su or su -
thanks
|
|
|
|
07-05-2005, 03:29 AM
|
#8
|
|
Member
Registered: Nov 2004
Location: India
Distribution: RedHat, PCQLinux, Fedora
Posts: 95
Rep:
|
Quote:
Originally posted by shujja
i have used the su command as root, which is
[root@localhost root]#su
Password type root password)
incorrect login (system replies)
same happen with the command su -
|
If you are already in the root, why do you want to do a su to root again? Also, if you are already as the root,
when you do a su (or su - ), you will not be asked for the password.
Quote:
|
plz tell me the right way of logging in as su or su -
|
That depends on the situation. The main difference of a su and a su - is that, the .bashrc (i assume u use bash) will
be executed (or rather sourced  ) when you do a su -.
HTH.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:33 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|