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 findout, if the user is local user or NIS user in the Linux (RHEL)?
How do i check which nfs version I am using ????????
What is the difference between semaphore and spinlock?
What is the name and path of the main system log?
How to convert an IP address to a Domain name using Unix ?
how to recollect root password
Without Using $date -dyesterday. How I get the yesterday's date ?
How to ""Add"" not replace address to same network card other than the alias way.... ??????
What are the questions we are expecting for 2yrs. experience guy for linux company interview questions?
what is the difference between fork and thread ? and parent and child process in fork system call?
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 ?
1.how to know cpu information on linux system? 2.how to hardware information on linux system? 3.if we add the new user what are the files will be changed? 4.how to remove the cache in squid server ? 5.how to know ur useing 32bit r 64 bit os ? 6.at booting process at init level which file it is reads? 7.if ur system performance is show what can u do ? 8.if ur file system corrupted what can u do ? fsck also not working? 9.how did u do health check in linux? 10.how did u check system performance in linux? 11.how did u create NIS server? give me the steps ? 12.how did u add a packages in linux ? 13.how did u know depended packages for any package useing rpm how u know? 14.how did you monitor cronjobs in linux ? 15.what is the use of logroted? and how did u do ? 16.port no is already in use so what canu do for that in http? 17.how to samba configurated are not ? there are any command for that ? 18.how to create a NTP Client using commands ? not as graphical... 19.how to know how many members are using any service? like ftp are any other services? 20.what is the differences between cmp,diff,comm commands?