Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-29-2006, 06:40 PM
|
#1
|
Member
Registered: May 2006
Posts: 80
Rep:
|
Chroot & SSHfs
Hi, I mounted a remote filesystem with sshfs and then tried to chroot into it. I know this sounds far too simple a solution to gain root access but I was wondering why it didn't work. The thing is, when I issued the whoami command, it said root. But I kept getting permission denied error messages. So what has happened? Will it work another way?
Thanks
|
|
|
11-29-2006, 06:53 PM
|
#2
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
I would think you might be pushing the limits of sshfs. Might ask the developer of sshfs and see what he or she says. Post back with any answers.
Brian
|
|
|
12-02-2006, 07:15 AM
|
#3
|
Member
Registered: Jul 2006
Distribution: Debian Testing
Posts: 299
Rep:
|
This is just a wild guess but it makes sense to me.
When you're chrooted into /sshfs you are root on the local computer, if you send a command like vi /sshfs/home/user/secret_stuff then something intercepts that command and sends it through teh SSH tunnel, at the other end of the tunnel a non-root user tries to open the file and lacks the permissions.
|
|
|
All times are GMT -5. The time now is 03:38 PM.
|
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
|
|