Sponsored Content
Full Discussion: Shell hosting
Top Forums UNIX for Advanced & Expert Users Shell hosting Post 24765 by scuzoid on Wednesday 17th of July 2002 11:32:03 AM
Old 07-17-2002
Thanks for the reply RTM;


going on your keywords I ended up with rbash

man bash

Code:
RESTRICTED SHELL
       If bash is started with the name rbash, or the  -r  option
       is  supplied  at invocation, the shell becomes restricted.
       A restricted shell is used to set up an  environment  more
       controlled  than  the  standard shell.  It behaves identi-
       cally to bash with the exception that  the  following  are
       disallowed or not performed:
 
       o      changing directories with cd
 
       o      setting  or  unsetting  the  values of SHELL, PATH,
              ENV, or BASH_ENV
 
       o      specifying command names containing /
 
       o      specifying a file name containing a / as  an  argu-
              ment to the .  builtin command
 
       o      Specifying  a  filename  containing  a  slash as an
              argument to the -p option to the hash builtin  com-
              mand
 
       o      importing function definitions from the shell envi-
              ronment at startup
 
       o      parsing the value of SHELLOPTS from the shell envi-
              ronment at startup
 
       o      redirecting output using the >, >|, <>, >&, &>, and
              >> redirection operators
 
       o      using the exec builtin command to replace the shell
              with another command
 
       o      adding or deleting builtin commands with the -f and
              -d options to the enable builtin command
 
       o      specifying the -p option  to  the  command  builtin
              command
 
       o      turning  off  restricted mode with set +r or set +o
              restricted.
 
       These restrictions are enforced after  any  startup  files
       are read.
 
       When  a command that is found to be a shell script is exe-
       cuted (see COMMAND EXECUTION above), rbash turns  off  any
       restrictions in the shell spawned to execute the script.


Its great but it totally disable cd

need something that can let users play in the sandbox within the userdir including cding within there.


Anymore Ideas?
 

3 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Project hosting?

Hey admins!, Please can you consider hosting devel projects. A. (5 Replies)
Discussion started by: ASGR
5 Replies

2. Shell Programming and Scripting

Apache Hosting-Shell Script - external files include

Hi there Well, it's my first time on this board, so short to myself: I'm matibaski, working as a webdeveloper and also as a system administrator on ubuntu server machines. The problem: I created a small apache-hostingscript by myself and it works fine. But after some addings and new... (1 Reply)
Discussion started by: matibaski
1 Replies

3. UNIX for Dummies Questions & Answers

MilesWeb.com shared hosting or unlimited hosting plans?

I want to host a website in India, after all my research I have found MilesWeb.com, I am planning to go for their shared plan http://www.milesweb.com/cpanel-hosting.php I have test their contact options and response time, they are really available 24/7. I have checked few other providers, they... (1 Reply)
Discussion started by: Guruguy
1 Replies
All times are GMT -4. The time now is 09:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy