1753666 Members
6298 Online
108799 Solutions
New Discussion юеВ

Re: restricted user

 
Muhammad Ahmad
Frequent Advisor

Re: restricted user

Hi Farhan/Dennis,

but in this case, we can't restrict the access of that user on shell through telnet/ssh etc.

-Br
Ahmad
Ganesan R
Honored Contributor

Re: restricted user

Hi Muhammad,

If you want to restrict the telnet/ssh access then change the shell to /bin/false
Best wishes,

Ganesh.
Md. Farhan A Azam
Trusted Contributor

Re: restricted user

>Ganeshan R:If you want to restrict the telnet/ssh access then change the shell to /bin/false.

In this scenario user will not be able to login in the server through telnet, as user will not get any shell. i think this will work for ftp.
Johnson Punniyalingam
Honored Contributor

Re: restricted user

Hi Ahmad,

>>In this scenario user will not be able to login in the server through telnet, as user will not get any shell. i think this will work for ftp.<<

yes ,

But you are looking for "user id" which should be resticted under its own working directory only.?

Can please try below suggestion under (Development Server)

Creat account :- UserA

Edit the /etc/passwd file. Append a "./" to the end of the initial working

userA:cinUTe/NGII4.:505:125::/home/userA/./:/usr/bin/sh

otherwise, You need look for resticted shell (or) jailroot

Thanks,
Johnson
Problems are common to all, but attitude makes the difference