I wonder if the following example is simply an expected and normal side effect of commands running from jailshell:
# less .bash_profile
sh: /usr/local/cpanel/bin/jailshell: No such file or directory
The command works, so it doesn't seem to break things, but the warning can be bothersome.
I'm running bash programmatically from objective c to create a terminal-like application. Once launched I would like to execute some commands prior to turning control over to the user. Normally these would be in the .bash_profile. This file is not accessible to me and not something I would want to mess we anyway as I don't want to effect the standard bash environment for the user.
After upgrading to a new release version, my bash scripts start spitting errors:
bash: /dev/stderr: Permission denied
in previous versions Bash would internally recognize those file names (which is why this question is not a duplicate of this one) and do the right thing (tm), however, this has stopped working now.
Hi again :)
This is just a sample whiptail menu.
Works great, but have been trying to get the chosen value into a variable but failing pretty bad...its ther but unsure how to echo it out when needed
Code:
#!
I create a bash script with using case syntax. My bash script option must be "./script user hello". Below is the content of the script.
Quote:
user=`echo "$1" | sed "s/$/@foo.com/"`
case $1 in
*)
echo "From: $user
TEST1" > /var/log/test1
I have a simple bash script which runs great as a regular user. When launched from postfix, it runs as nobody:nobody which prevents many commands from working.
Is it possible for the script to change to another user account while running, to allow these other programs to run?
Thanks
Hi, I'm writing a shell script that calls a few commands that prompt the user for two simple yes/no questions. if the answers are consistent (the first is a yes, the second is a no), what would my expect script look like? Google is only giving me answers for scripts where I telnet or ssh.
I just came to realize that my system is not limiting the amount of processes per user properly thus not preventing a user from dring a fork-bomb and crashing the entire system:
user@thebe:~$ cat /etc/security/limits.conf | grep user
user hard nproc 512
user@thebe:~$ ulimit -u
1024
user@thebe:~$ :(){ :|:& };:
[1] 2559
user@thebe:~$ ht-bash: fork: Cannot allocate memory
-bash: fork
Hi.
I need to launch a bash file in Linux from an unprivileged user session, file that will run bash commands as root. But I do not want to create an user with root privileges to do that.
Merci
Julia