LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-07-2010, 04:09 PM   #1
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Rep: Reputation: 17
su permissions in CentOS


Today I noticed that by default, any user can run su and get root privileges if they know the root password. I was under the impression they had to be a member of wheel.

This is controlled from the /etc/pam.d/su file, and I can uncomment a line in it to fix this.

However, I'd like to set the behavior when I set the machines up initially. Is there some method to set the default su behavior at setup time, or will I be forced to edit that file everytime I set a server up?
 
Old 10-07-2010, 04:22 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,261

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
Did your try restarting your machine? And /etc/pam.d/su has been automagically changed after your changes? Because it shouldn't.

Last edited by eSelix; 10-07-2010 at 04:24 PM.
 
Old 10-07-2010, 04:30 PM   #3
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Original Poster
Rep: Reputation: 17
No, by default when you set up CentOS, it has su enabled for all users. I would like the behavior to be only allow su for wheel users.

I can manually edit the pam.d/su file but I was wondering if there was an option I could set when I'm setting the machine up from scratch.
 
Old 10-07-2010, 04:43 PM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,261

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
Oh, sorry, I misunderstanded your question. In Ubuntu it is possible through preseeding, but on CentOS I just don't known. Maybe other forum users will help you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
group permissions for subfolders only (CentOS) dahliash Linux - Newbie 3 04-20-2010 12:31 PM
Unifying permissions between two servers (CentOS + Webmin/CentOs +Cpanel) and rsync d60eba Linux - Server 1 01-01-2010 12:55 PM
Removable media permissions on CentOS DaveQB Linux - Software 2 10-29-2009 01:38 AM
Permissions Apache and CentOS Mr. Slappy Linux - Server 1 07-09-2007 03:57 PM
centos - firewall up - ftp no permissions sir-lancealot! Linux - Security 7 08-31-2006 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration