Linux - SecurityThis 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.
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.
when I created it, I get a bash file in there, no folder.
so I get these errors
[root@localhost oxide]# chroot /home/shell/oxide /bin/bash --login
chroot: /bin/bash: No such file or directory
so I add a bash folder and I still get an error
[root@localhost oxide]# chroot /home/shell/oxide /bin/bash --login
chroot: /bin/bash: Permission denied
why is this?
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////////////////////
what I'm wanting to do is:
have the folder "oxide" as a root folder for the shell user "oxide" and so he can only access files/folders in his directory only. and I'd want to set that on each account I setup, is that possible?
Last edited by secret_ident; 01-05-2004 at 09:30 PM.
I am trying to accomplish the same thing. Want to keep a user ONLY in their Home Dir.
anyone have any answers to this one? I am new to Linux. I tried to read the help that came with chroot, but didn't understand it. Could someone please give a syntax example is the following conditions are true:
home dir is: /home/johndoe
User ID is: johndoe
I only want "johndoe" to be able to navigate/see files in his own home dir only.
I think you guys might be interested in setting up a chroot jail for users, which is a variation of simply chrooting an application but isn't quite the same thing. It's a bit more complex than just chrooting bash to the users home dir. There is an entire section of the Security references thread here that is entirely devoted to chrooting and setting up chroot jails. There are several comprehensive walk-throughs and even entire project devoted to the task (Jail Chroot Project) that offers a suite of tools which do alot of the work for you.
Last edited by Capt_Caveman; 01-14-2004 at 10:55 PM.
Looks like you have everything installed except the c compiler itself. If you had it installed you should have gotten:
compat-gcc-7.3-2.96.118
libgcc-3.2.2-5
compat-gcc-c++-7.3-2.96.118
..and...
gcc-3.2.2-5
Or something similar. (gcc-3.2.xxx)
Install the gcc-3.2.-xxx.rpm off the install disks and re-login. Then make should be able to find gcc. Also I wouldn't change those filenames unless indicated in the HOWTO.
---EDIT----
You should be able to test if gcc is installed by simply doing:
Code:
$ gcc
gcc: no input files
if it isn't installed you should get:
$ gcc
bash: gcc: command not found
Last edited by Capt_Caveman; 01-17-2004 at 07:32 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.