Through ssh whole directory structure from / is shared
regardless the user we have connected with ....... how do i
prevent sharing ??

Answers were Sorted based on User's Feedback



Through ssh whole directory structure from / is shared regardless the user we have connected with ..

Answer / manoj

i am not agree with above answer i think it shows hoe to
configure ssh.. u have to define indivisual security with
permission to a file & directory..
its benefitial to use setfacl command for secure your
stuff..

Is This Answer Correct ?    7 Yes 1 No

Through ssh whole directory structure from / is shared regardless the user we have connected with ..

Answer / parveen khera

Hi,

You can use any of these below mentioned:

1. Use restricted bash(rbash), which not only restricts
users to their home directory but also provides other
required restrictions. http://www.wlug.org.nz/rbash%281%29
or
http://pizzashack.org/rssh/
2. Use SSH Jail with PAM_ChRoot:
http://singe.za.net/blog/archives/378-Linux-SSH-Jail-with-pam_chroot.html
3. Use Jail Kit Chroot:
http://olivier.sessink.nl/jailkit/jk_chrootsh.8.html

Thanks.

Is This Answer Correct ?    0 Yes 0 No

Through ssh whole directory structure from / is shared regardless the user we have connected with ..

Answer / vishal sharma

vi /etc/ssh/sshd_config
"in last line enter the folowing entry"
AllowUsers "username"

And

vi /etc/hosts.deny
"in last line enter the folowing entry"
sshd: ALL EXCEPT "DOMAIN-NAME"

Is This Answer Correct ?    6 Yes 7 No

Through ssh whole directory structure from / is shared regardless the user we have connected with ..

Answer / susheel narayan singh

# vim /etc/host.deny
(press i)
sshd:ALL

wq:

Note: This is tcp_wrappers configuration by this way u can
prevent.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Linux AllOther Interview Questions

how to install linux OS? pls send step by step

3 Answers  


What is the other method of installing Linux O.S other than Text, GUI mode? Why we prefer that for installation of Linux in Real time?

2 Answers  


what is the difference betweenh the NFS and FTP?

4 Answers   IBM,


How to recover a deleted file in linux ?

5 Answers  


1. User gaves df -h and the system get hanged. why ? 2. what is the hardlink and softlink mount ? 3. why is portmape should be started ? 4. what is nologin option 5. how to restrict users from accessing nfs ? 6. what is the difference between cpio and tar 7. what are the kernel parameters ? how to find out it ? 8. why we use sysctl.conf ? 9. if we gives init1 from multiuser runlevel, will it affect other users who already logged in to the system ? 10. what will be the available space to use after configuering raid5 with 5 disks each having 5gb spce ?

0 Answers   Oracle,






what is memory mapped / IO mapped ? Which calls used for this to access any hardware address in linux device driver ?

3 Answers   Broadcom,


What is the difference between RedHat linux and Fedora and Ubuntu?

3 Answers   CSC,


How can i recover the linux system after it was crashed by step by step process..

3 Answers   IBM,


What are RPM?s, what do they offer?

2 Answers  


What text filter can you use to display a binary file in octal numbers?

1 Answers  


i want some basic level enterview questions can any one can help me in this

1 Answers   TCL,


My Linux server in the two lan card one lan card is ok working but second lan card after restart daily lan card deactivate and then manual activate then properly working but after restart repeat this problem.(Fedora O.S.) Pls tell me solved this problem.

4 Answers  


Categories