Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] security dude....the puto story
- To: tlug@example.com
- Subject: Re: [tlug] security dude....the puto story
- From: Shimpei Yamashita <shimpei@example.com>
- Date: Sat, 23 Feb 2002 10:51:45 +0900
- Content-disposition: inline
- Content-type: text/plain; charset=us-ascii
- In-reply-to: <200202230025.3840@example.com>
- Organization: Hummingbird Heaven
- References: <20020218172903.J1556@example.com> <20020222154504.3801.HIYORI13@example.com> <20020222161027.I1435@example.com> <200202230025.3840@example.com>
- Sender: Shimpei Yamashita <shimpei@example.com>
- User-agent: Mutt/1.3.27i
On Sat, Feb 23, 2002 at 04:38:51PM +0100, Pietro Zuco wrote: > 5. I thought that puto can change this situation so I became root with su > command. I typed chown root.root .bashrc > 6. The .bashrc file has 644 atributes, list with ls -l and I confirm that the > .bashrc file now is of user root and group root > 7. exit root so I'm puto again > 8. edit the .bashrc file with vi > 9. The vi alerts me that the file is read-only > 10. I change the content of the file and put the mc line in comment > 11. quit vi with wq! option, and it says "written!!" > 12. list with ls -l > I surprise because the file .bashrc now is of puto again! the user and group > are puto and puto! If /home/puto is writable by puto, puto can remove any file from that directory, regardless of who owns it, and replace it with his own. One way to prevent this is to: chown root.puto /home/puto # replace first "puto" with whatever his # default group is chmod 1775 /home/puto The leading "1" in the permission means that, even if you have write privileges to the directory, you are only allowed to delete files that you own. It's a setup usually used for /tmp. This way puto can still write whatever he wants into his home directory, but he cannot change files that root installed for him. Your second story appears to be the same. -- Shimpei Yamashita http://www.shimpei.org/ You can't have everything. Where would you put it? -- Steve Wright
- References:
- Re: [tlug] Login/SSH Scan Detection
- From: Matt Doughty
- [tlug] grub vs lilo
- From: YAMAGATA Hiroo
- Re: [tlug] grub vs lilo
- From: Matt Doughty
- [tlug] security dude....the puto story
- From: Pietro Zuco
Home | Main Index | Thread Index
- Prev by Date: [tlug] security dude....the puto story
- Next by Date: Re: [tlug] Off Topic: Used Laptop
- Previous by thread: [tlug] security dude....the puto story
- Next by thread: Re: [tlug] grub vs lilo
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links