Linux - NewbieThis 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.
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.
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.
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.
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.
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 -.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.