10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am really confused as to why a tool like fakechroot exists and what does it do.
Chroot is an ability only for root users, correct? Then a tool that allows to bypass that is clearly a security flaw, correct?
When and why would you need something like this?
Is there any relation between... (7 Replies)
Discussion started by: sreyan32
7 Replies
2. Shell Programming and Scripting
If I select the statement on db is ok, but same statement on UNIX script I get
table or view is not exist. what should I do?:( (5 Replies)
Discussion started by: Hscript
5 Replies
3. Shell Programming and Scripting
How can I check and see if the first parameter is a file existing in the current path or it is a real file and user input some random name in an IF statement? (5 Replies)
Discussion started by: bashily
5 Replies
4. UNIX for Dummies Questions & Answers
I have this code in tcsh and would like to know whether the syntax below will work in csh.
if( "${%rsl}" == 0 ) then
echo "rsl is empty"
endif
---------- Post updated at 06:38 AM ---------- Previous update was at 05:53 AM ----------
It does not seem so. Perhaps the best thing is to... (2 Replies)
Discussion started by: kristinu
2 Replies
5. Solaris
Hi -
I have a Sun 6800 with Solaris 10 u8 and I have an hme card in it and a quad qfe card. I am using the hme0 infc currently. I configured a zone and specified exclusive use of qfe0, but then when I go and try to plumb from the new zone, it gives me this:
zone1# ifconfig qfe0 plumb... (6 Replies)
Discussion started by: pyroman
6 Replies
6. Shell Programming and Scripting
Hi,
I am new to shell-scripting, and doing a lot of reading. I am having some trouble getting started with a simple testing of scripting. I have been experimenting with if, loops, for, test, etc., but still unsure. I seem to have the hang of it when it comes to creating a single file or... (6 Replies)
Discussion started by: me2
6 Replies
7. Shell Programming and Scripting
Hi I need help to whit a script that start a program if a nother program is started first .
I thought something like this .
if then start program 2
Thanks (4 Replies)
Discussion started by: pelle
4 Replies
8. Shell Programming and Scripting
I have a script that is working:
#!/bin/bash
sftp user@domain.com <<EOF
cd somedir
mget *.csv
quit
EOF
but on a crontab I want to only pull newer files, so I want to do something like:
while read ls current dir local file != true do
mget that new file
but I'm not sure the syntax... (2 Replies)
Discussion started by: unclecameron
2 Replies
9. UNIX for Dummies Questions & Answers
somehow my user names and groups on one of our machines are changed to numbers 700, 701, etc.
thus, i can only ssh into this machine as root.
is there a way to migrate the user names and groups to this machine?
thanks! (3 Replies)
Discussion started by: user23
3 Replies
10. UNIX for Dummies Questions & Answers
Is there a jumpstart equivalent tool in the linux environment? (1 Reply)
Discussion started by: pbonilla
1 Replies
RBASH(1) General Commands Manual RBASH(1)
NAME
rbash - restricted bash, see bash(1)
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 identically to bash with the exception that the follow-
ing 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 filename containing a / as an argument to the . builtin command
o specifying a filename containing a slash as an argument to the -p option to the hash builtin command
o importing function definitions from the shell environment at startup
o parsing the value of SHELLOPTS from the shell environment 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 using the enable builtin command to enable disabled shell builtins
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 executed, rbash turns off any restrictions in the shell spawned to execute the script.
SEE ALSO
bash(1)
GNU Bash-4.0 2004 Apr 20 RBASH(1)