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. |
|
 |
03-01-2011, 08:43 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2006
Posts: 6
Rep:
|
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?
|
|
|
|
03-01-2011, 09:06 AM
|
#2
|
|
Senior Member
Registered: Feb 2009
Posts: 3,138
|
Please explain exactly what you mean by "the change does not stick."
I would recommend:
Code:
su -
nano /etc/security/limits.conf
exit
(You can substitute vi etc. for nano if you prefer.)
It is theoretically possible to log in to Gnome as root, but it is not designed to be easy as it is very poor security practice.
|
|
|
1 members found this post helpful.
|
03-01-2011, 12:11 PM
|
#3
|
|
LQ Newbie
Registered: Jan 2006
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
|
03-01-2011, 01:58 PM
|
#4
|
|
LQ Newbie
Registered: Nov 2006
Location: Italy
Distribution: Ubuntu, Debian
Posts: 21
Rep:
|
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 
|
|
|
1 members found this post helpful.
|
03-01-2011, 02:46 PM
|
#5
|
|
LQ Newbie
Registered: Jan 2006
Posts: 6
Original Poster
Rep:
|
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?
|
|
|
|
03-01-2011, 07:51 PM
|
#6
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 14,973
|
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.
HTH
|
|
|
|
03-02-2011, 06:31 AM
|
#7
|
|
LQ Newbie
Registered: Nov 2006
Location: Italy
Distribution: Ubuntu, Debian
Posts: 21
Rep:
|
you changed the soft limit. What is the hard limit for *(and/or your specific user)? Soft limits cannot go above hard ones.
|
|
|
|
03-02-2011, 07:08 AM
|
#8
|
|
LQ Newbie
Registered: Jan 2006
Posts: 6
Original Poster
Rep:
|
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'
|
|
|
|
03-02-2011, 08:12 AM
|
#9
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
|
03-03-2011, 04:30 AM
|
#10
|
|
LQ Newbie
Registered: Nov 2006
Location: Italy
Distribution: Ubuntu, Debian
Posts: 21
Rep:
|
is there anything in /etc/security/limits.d/ that may override what you set in limits.conf? That's the only other thing I can think of right now.
|
|
|
|
03-04-2011, 09:58 AM
|
#11
|
|
LQ Newbie
Registered: Jan 2006
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
|
03-25-2011, 09:11 AM
|
#12
|
|
LQ Newbie
Registered: Jan 2006
Posts: 6
Original Poster
Rep:
|
Red Hat solution:
Please run the following command as the non root user.# unlimit -c unlimited
Thanks to all for your support.
|
|
|
|
| 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 08:37 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
|
|