Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

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)

2 Answers  


How to Create NIS Server And NIS Client? Explain With Example?

1 Answers   Cisco,


How to send automated email to a set of people at fixed time ?

3 Answers   Accenture, HP,


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

1 Answers  


how can i create samba server in fedora 9.0 ? and domain/LDAP controller! clilent side is windows pc .?

0 Answers   Wipro,


what are the steps for Password-less ssh

5 Answers   IBM, Mind Tree,


Give a Linux shell command to find all files in a directory which contain ip addresses.

1 Answers   Amazon,


how to install linux OS? pls send step by step

3 Answers  


What is the minimum number of partitions you need to install Linux?

30 Answers  


Hi all Could u plz tell me how I can get UNIX/Linux Certification

2 Answers   Accenture,


Tell me command which is use for create quota database in Linux.

7 Answers   Wipro,


In how many ways linux can be installed n explain th steps involved in installation in any of the method..?

1 Answers   IBM,


Categories