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. |
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 |
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.
|
Re: Permission denied for root user
Quote:
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 |
Check the permissions of the files,if proper pemissions are not there set the permission as root.
|
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. |
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 |
Quote:
when you do a su (or su - ), you will not be asked for the password. Quote:
be executed (or rather sourced ;) ) when you do a su -. HTH. |
hi dear all,
i have some problem. after i log on as root. and and type dir, i got error message like this : #dir bash: /usr/bin/dir:permission denied. and when I run ls -l #ls -l , i see -rw-r--r-- 1 root root -rw-r--r-- 1 root root -rw-r--r-- 1 root root -rw-r--r-- 1 root root -rw-r--r-- 1 root root so whats the mind of some error was in my command prompt? thanks. |
Quote:
|
All times are GMT -5. The time now is 12:26 AM. |