LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-09-2010, 03:13 AM   #1
thebomb
LQ Newbie
 
Registered: Dec 2009
Location: Johannesburg
Distribution: Centos 5.4
Posts: 7

Rep: Reputation: 0
SSH jail and ACL lists


Hello

I need a howto or method to jail the user to its home directory and use ACL lists at the same time.

example, the user can only navigate to its home directory and /var/log/httpd/httpd-access.log read access.

All comments and thanked in advanced.

Thank you.
 
Old 03-09-2010, 03:32 AM   #2
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
Well this is not exactly what you requested but... what about symlinking to /var/log/httpd/ from user homedir, making the /var/log/httpd directory mode 0751, owned by root:root, and file httpd-example-org.log owned by root:user with mode 0640, etc? Set modes on other directories so that they can't be listed by anyone xcpt for root, only their content could be acessed directly.
Many website hosters do it this way.
Or, if you want, you can chroot user and make a hard link to logfile(didn't ever try that but it should work).
 
  


Reply



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
LXer: Unique Sorting Of Lists And Lists Of Lists With Perl For Linux Or Unix LXer Syndicated Linux News 0 09-05-2008 01:50 PM
apache - ACL lists clue_less Red Hat 2 11-10-2007 12:25 AM
User Creationg : ssh/sftp user jail to $HOME only routers Solaris / OpenSolaris 2 10-29-2007 11:28 PM
slackware 10.2 chroot/jail ssh zdannar Slackware 3 07-12-2007 05:51 PM
ssh session in a chroot jail? houler Linux - Security 13 04-05-2005 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:08 PM.

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
Open Source Consulting | Domain Registration