How do I log on as root without using 'su' when I'm in gnome GUI?
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I log on as root without using 'su' when I'm in gnome GUI?
Using RHEL 5 the admin user is logged on and Gnome is open. I need to make a change to the /etc/security/limits.conf file using root but if I su to root the change does not stick. I've been told to log on as root without using 'su' but cannot find out how to do this?
re '..not stick', after su - to root entered 'ulimit -c unlimited' then entered 'ulimit -a' and the change was displayed. Then went back to user account and entered 'ulimit -a' and the change was not shown.
You may have answered yourself in the first post here.
Quote:
Originally Posted by rgm6000
[...] I need to make a change to the /etc/security/limits.conf file using root [...]
I'd guess that ulimit as root changes the limits for root, so if you want to apply the change to a different user you'll have to manually edit limits.conf(and you can only do that as root). snowpine's instructions look fine to me
OK thanks.
Using ssh from my pc, I went to limit.conf as root and entered * soft core unlimited
logged off and logged on as root, entered 'ulimit -a' and got core file size (blocks,-c) unlimited, changed to another user and got core file size (blocks,-c) 0. What am I missing?
Let me explain it this way; you can interactively change those values FOR THE CURRENT SESSION by issuing those cmds at the cmd line.
To make them 'stick' you actually have to manually edit the file with vi /vim (substitute your editor of choice).
This is pretty much std for any cmd in Linux.
A little background, I am making these changes on our production internet server. The reason I've been trying to make the change is to get more debug data because we have intermittent crashes on the application server on this system. I'm working with the application vendor and they recommended the change.
I've been using vi for all my edits. This server has only 1 user with logon privileges at present there are 3 settings in limits.conf:
* soft core unlimited
user1 soft nofile 20000
user1 hard nofile 49152
(Logged on as root the core file size shows 'unlimited', as user1 '0'.)
Since soft limits cannot go above hard, what additional setting do you think is needed?
My vendor only specified changing 'soft'
A softlimit can be changed by a normal user up to the hard limit. The kernel enforces the soft limit. So you don't need to change the hard limit. The hard limit prevents a normal user from increasing a limit above a certain amount.
We do not seem to have a 'limits.d' file. I'm on this project part time so cannot get back to it until next week, at that time I'm planning to open a support case with Red Hat and I will post the outcome. Thanks to all for your assistance.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.