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 know what are the packages required for any service? Example: How to know what are the package required for send mail services. using any command it is passable are not?
I want to send pop-up message to samba users when they access the shared folder.... for eg: i want to tell them (dont copy mp3 and video files)
Which directory is closer to the top of the file system tree, parent directory or current directory?
How to give 2 different gateway IP addresses for 2 different interfaces in same system ?
am installed windows and later i installed ubuntu i want to unistall ubuntu can any one tel the procedure to uninstall ubuntu in my windows 7 please mail to me ---kiranpulsar2007@gmail.com and later i want to install ubuntu after uninstalling ubuntu tel the procedure for that also i dont know to patrition the hard disk drive please tel to them please reply
What file should you examine to determine the defined runlevels for your system?
in linux gui desktop icon was lost how con u back this icons
How to convert an IP address to a Domain name using Unix ?
When you install RedHat what is the kernel mode ? What is kernel compilation / upgrade ?
how can i make an user to nologin without locking the account for the user
What is the name and path of the main system log?
What is LILO?