Operating System - HP-UX
1756426 Members
3005 Online
108847 Solutions
New Discussion юеВ

Re: Restricting user access to folders.

 
SoorajCleris
Honored Contributor

Restricting user access to folders.

How we can restrict a user from browsing through any directories other than it's home directory and sub directory ?

For example user "sun" shoould not wander outside /home/sun

like

$cd /var

it should give error

$cd /home/sun/docs

it should work ... is that possible?
I want to do it in HP UX.

Thanks in advance
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
3 REPLIES 3
Kenan Erdey
Honored Contributor

Re: Restricting user access to folders.

hi,

chrooted environment is what you are looking for.

/opt/ssh/utils/ssh_chroot_setup.sh command does it. if you can't find, look for it in the forum.

Kenan.
Computers have lots of memory but no imagination
SoorajCleris
Honored Contributor

Re: Restricting user access to folders.

Thnaks mates .. thank you
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie