- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: any user can modify files owned by root!!!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2005 06:45 AM
07-20-2005 06:45 AM
any user can modify files owned by root!!!
-rw-r--r-- root root
(but not files owned by other users). It's a huge security issue and I need help resolving this ASAP.
In /etc/group I have nothing out of the ordinary:
root:x:0:root
sys:x:3:root,bin.adm
adm:x:4:root,adm,daemon
There is nothing in /etc/sudoers that would allow this...
I've browsed at some of the pam files, comparing it with another system and didn't see anything, (but I'm not an expert in this area and could of missed something)
If anyone has any suggestions what might be causing this I would greatly appreciate it.
masaki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2005 08:52 AM
07-20-2005 08:52 AM
Re: any user can modify files owned by root!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2005 03:11 PM
07-20-2005 03:11 PM
Re: any user can modify files owned by root!!!
You've got global +r, so anybody can read it.
And Ivan's post covered the removal.
But I highly doubt you can 'modify' the contents of one of these files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2005 06:27 PM
07-20-2005 06:27 PM
Re: any user can modify files owned by root!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2005 08:13 PM
07-20-2005 08:13 PM
Re: any user can modify files owned by root!!!
Change your root password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 12:04 AM
07-21-2005 12:04 AM
Re: any user can modify files owned by root!!!
I assure you they can modify any file as long as root owns the file and has write permissions like /etc/passwd !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 05:18 AM
07-21-2005 05:18 AM
Re: any user can modify files owned by root!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 05:42 AM
07-21-2005 05:42 AM
Re: any user can modify files owned by root!!!
There should only be 1 UID=0 and that is root.
Here is a script that can help. Modify as needed since original inception was in NIS environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 05:43 AM
07-21-2005 05:43 AM
Re: any user can modify files owned by root!!!
One additional info is that although normal users can modify root owned files, they can not run root commands. It doesn't seem to matter what the group ownership/permissions are set to.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 05:49 AM
07-21-2005 05:49 AM
Re: any user can modify files owned by root!!!
There are several groupid=0,
sync, shutdown, halt, opertor. I think these are OK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 06:07 AM
07-21-2005 06:07 AM
Re: any user can modify files owned by root!!!
Maybe, the commands, like vi, have the set user id bit enabled (SUID). You will see an "s" in the permissions:
-rwsr-xr-x 5 root root 331552 Jun 16 2004 /bin/vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 06:08 AM
07-21-2005 06:08 AM
Re: any user can modify files owned by root!!!
Is sudo in play? How about PowerBroker?
Do the visudo command. This will display the sudoers file. Any clues?
Check the sudoers log file - if you have the sudo.conf file setup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 06:10 AM
07-21-2005 06:10 AM
Re: any user can modify files owned by root!!!
find / -user root -perm -4000 -ls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 06:43 AM
07-21-2005 06:43 AM
Re: any user can modify files owned by root!!!
Checked SUID on vi, not there.
some examples of what non root users can do
$ cd /root
permission=750 root root /root
$ cat /etc/shadow
permission=600 root root /etc/shadow
$ vi /etc/passwd
permission=644 root root /etc/passwd
sudo is not involved. If I try to use it, it promps me for root password.(sudo vi /etc/passwd)
powerbroker is not installed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 07:12 AM
07-21-2005 07:12 AM
Re: any user can modify files owned by root!!!
getfacl /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 07:18 AM
07-21-2005 07:18 AM
Re: any user can modify files owned by root!!!
getfacl /etc/passwd
Verify that you don't have installed a rootkit. Use the rpm -V command to check the integrity of the commands in the system, and if they changed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 07:23 AM
07-21-2005 07:23 AM
Re: any user can modify files owned by root!!!
http://www.chkrootkit.org/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 07:49 AM
07-21-2005 07:49 AM
Re: any user can modify files owned by root!!!
Also, what terminal were you on? the console? ssh'd in?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2005 05:20 AM
07-25-2005 05:20 AM
Re: any user can modify files owned by root!!!
chkrootkit, interesting tool, ran it but did not detect anything.
The userid can be any number, and all root files are available to them.
I've verified that the symptom exists when connected with ssh, and telnet.
Masaki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2005 05:55 AM
07-25-2005 05:55 AM
Re: any user can modify files owned by root!!!
try to enable kernel auditing (SELinux extensions) and create an audit trail of the file accesses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2005 06:30 AM
07-25-2005 06:30 AM
Re: any user can modify files owned by root!!!
It sounds like you have a seriously nobbled system, and, unless you want to dissect it to find out what is happening, as opposed to just fixing the problem, reinstalling would lead back to a secure, base-lined system.
After all, you did 'adopt' it in the first place. Might as well make it truly yours!
Regards,
Andy