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
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 |
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 |
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 |
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 |
how to install linux OS? pls send step by step
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?
what is the difference betweenh the NFS and FTP?
How to recover a deleted file in linux ?
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 ?
what is memory mapped / IO mapped ? Which calls used for this to access any hardware address in linux device driver ?
What is the difference between RedHat linux and Fedora and Ubuntu?
How can i recover the linux system after it was crashed by step by step process..
What are RPM?s, what do they offer?
What text filter can you use to display a binary file in octal numbers?
i want some basic level enterview questions can any one can help me in this
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.