Skip to main content

Questions tagged [restricted-shell]

The restricted shell is a Unix shell that restricts some of the capabilities available to an interactive user session, or to a shell script, running within it.

0 votes
2 answers
199 views

I've setup restricted shell(s) on an Arch-based system by creating /usr/local/bin/rzsh and /usr/local/bin/rbash: these scripts cd into /home/$USER and then invoke zsh -r and bash -r respectively, but ...
Rob's user avatar
  • 111
1 vote
1 answer
535 views

Hi I have a login shell via /bin/rbash However i cannot scp to the home directory. Is there anyway to solve this? scp /tmp/x user@ip:/home/ubuntu/x how to make above work when user always gets a ...
Uise's user avatar
  • 11
1 vote
0 answers
187 views

I want to whitelist some of the commands for users. I am getting solution using LShell Limited Shell but I want to restrict subcommands as well. I want user to access docker ps and docker logs only. ...
mhassaankhokhar's user avatar
0 votes
0 answers
116 views

I'm trying to create a user without shell access just for port forwarding through ssh. The shell of the user is set to /usr/bin/false, but everytime i try to login through ssh it receive Permission ...
deodre's user avatar
  • 1
2 votes
0 answers
255 views

As part of a script to set up a restricted user, I ran the enable -n enable command. For testing purposes I would like to undo that command but I can't find any documentation on how to do so. I know ...
ajmeese7's user avatar
  • 390
1 vote
2 answers
2k views

My Goal: restrict a jump users (into OpenSSH jumpbox) to only SSH to another server. Users should not be able to list directories, cd or anything else except ssh from jumpbox to another server. What I ...
Arnold Jerry's user avatar
-3 votes
2 answers
216 views

I have a shell script to calculate cpu and memory resources in a vm. For one task, I would like to perform mathematical calculations in a rbash shell. Could you please guide me the possible ...
satsensort's user avatar
2 votes
1 answer
506 views

I am setting up a new local account on a Debian buster server. The account name is "auto-upload". The entry in /etc/passwd looks like this: auto-upload:x:1060:1060:auto-upload:/home/auto-...
rlandster's user avatar
  • 763
2 votes
1 answer
383 views

I am messing around and want to have a guest user whose login shell is a restricted one like rbash. Unfortunately there is no rbash executable anywhere on my Slackware installation, so I have to do ...
Architect's user avatar
  • 173
0 votes
0 answers
18 views

I have a dedicated server running Ubuntu Server 18.04. I'm going to be hosting a Minecraft server for someone. What's the best way to restrict their read, write, and execute access to only the ...
user avatar
1 vote
1 answer
843 views

I was provided an assignment with several questions. One of the questions is: How to restrict users can only execute the commands in the directory /bin? I tried to solve it by using the following ...
Sangar Tahir's user avatar
0 votes
0 answers
46 views

I would like to limit a user to only two commands: cat and exit. I've tried to edit visudo but it does not work. My OS version is CentOS 8.
kdm.J's user avatar
  • 11
1 vote
1 answer
2k views

I ran this command: yum install rbash And for some reason it told me that the package wasn't available. It didn't come pre-installed on my system either and when I looked it up I was unable to find ...
chunchunmaru's user avatar
1 vote
1 answer
420 views

I've deployed CentOS-7 login nodes for users, I want restrict them in resources and command level to prevent nasty activities, so far my search only ended up to rbash and lshell and etc..., is there ...
Tux88's user avatar
  • 11
0 votes
1 answer
649 views

I am developing an in-house file-sharing system like Google Drive/Dropbox with very restricted shell access to users' own folder. The users have to be able to use mv ssh ls cd commands to access and ...
user avatar

15 30 50 per page