09-10-2008
Arrange for the shell script or program presenting the menu to be the login shell. Do not have a parent shell for them to escape to. A shell can replace itself with a line like:
exec /usr/local/bin/menuthing
but you should explore simply having /usr/local/bin/menuthing be the login shell given to the user in /etc/passwd.
And once you do this, allow them to escape at will, thus logging themselves off.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how to use the arrow keys in shell scripting. is there any special synatax / command for this.
i just want to use the arrow keys for navigation.
replies appreciated
raguram R (3 Replies)
Discussion started by: raguramtgr
3 Replies
2. SuSE
Hi All,
I want to disable bunch of unused services on SLES and RHEL to improve the performance. Since we have more than 100 servers to disable services, I want to do with some script. Any one can give me an idea how to write a script to disable services. Thanks (1 Reply)
Discussion started by: s_linux
1 Replies
3. Shell Programming and Scripting
Hi All,
I have bash script, so what is sintax script in bash for Enable and Disable Tab Key. Thanks for your help.:(
Thanks,
Rico (1 Reply)
Discussion started by: carnegiex
1 Replies
4. Shell Programming and Scripting
Hello!!
I am trying to write a script to verify if theres an id_rsa.pub, if not then create one. After creating one to send it to antoher servers authorization keys file.
Hope that makes sense-lol.
Heres what I have so far:
Cd .ssh
Cat id_rsa.pub
If not then ssh-keygen -t rsa
Then... (3 Replies)
Discussion started by: bigben1220
3 Replies
5. Shell Programming and Scripting
I would like an expect script that not only transfers over the trusted keys to remote hosts that I've never logged into before via ssh, but it also cats the trusted key into the ~/.ssh/authorized_ksys2 file. Essentially it would be like combining the two scripts below. But I would rather stay away... (2 Replies)
Discussion started by: master-of-puppe
2 Replies
6. Red Hat
Hi all Expertise,
I have following issue to solve,
SSL / TLS Renegotiation DoS (low) 222.225.12.13
Ease of Exploitation Moderate
Port 443/tcp
Family Miscellaneous
Following is the problem description:------------------
Description The remote service encrypts traffic using TLS / SSL and... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
7. Shell Programming and Scripting
Hi all,
I needed a shell script for file transfering using public/private keys for authentication.
Could you please help me out on this?
A procedure to write a shell script is enough.
Thanks in advance.
Regards.
Vidya N (8 Replies)
Discussion started by: Vidya N
8 Replies
8. Shell Programming and Scripting
Greetings, i've been working with a user-friendly menu on ksh to allow users execute scripts located on a remote server, so they wont have to login and manually launch those scripts every single time.
This is a HP-UX box and currently on a /usr/bin/ksh shell.
I've setup ssh keys on both... (1 Reply)
Discussion started by: nbriozzo
1 Replies
9. Shell Programming and Scripting
Dear All,
I have a requirement where I have to SFTP or SCP a file in a batch script. Unfortunately, the destination server setup is such that it doesn't allow for shell command line login. So, I am not able to set up SSH keys. My source server is having issues with Expect. So, unable to use... (5 Replies)
Discussion started by: ss112233
5 Replies
10. Shell Programming and Scripting
Hi All,
Consider we have script Linux server . But we don't have permission to edit that file.
When run the script, it opens a file as "/tmp/xxx0000 .txt" with few contents. Most of the time the contents doesn't required to modify and they just save and close (:wq!).
So the script continues... (7 Replies)
Discussion started by: k_manimuthu
7 Replies
LEARN ABOUT DEBIAN
exmenen
EXMENEN(1) General Commands Manual EXMENEN(1)
NAME
exmenen, exmendis - enable or disable extra menus for GNOME, KDE and other XDG menu-spec compliant desktops
SYNOPSIS
exmenen (--system | --local) [ module ]
exmendis (--system | --local) [ module ]
DESCRIPTION
This manual page documents briefly the exmenen and exmendis commands.
exmenen is a script that enables the specified extra applications menu on either a system, or per-user basis. It does this by creating
symlinks within /etc/xdg/menus/applications-merged/ (system wide), or ${XDG_CONFIG_HOME}/menus/applications-merged/ (per-user). If the
XDG_CONFIG_HOME environment variable is unset, its default is taken to be ${HOME}/.config .
Likewise, exmendis disables an extra applications menu by removing those symlinks. It is not an error to enable a menu which is already
enabled, or to disable one which is already disabled.
EXAMPLES
exmendis --system electronics
exmenen --system electronics
Disables the system wide extra electronics menu, enables it for the current user.
FILES
/usr/share/extra-xdg-menus
Directory with .menu files defining the available extra modules.
/etc/xdg/menus/applications-merged
Directory with links to the files in extra-xdg-menus for system-wide enabled extra menus.
${XDG_CONFIG_HOME}/menus/applications-merged
Directory with links to the files in extra-xdg-menus for per-user enabled extra menus. If XDG_CONFIG_HOME is unset, the directory
used will be ${HOME}/.config/menus/applications-merged
AUTHOR
This manual page was written by Peter Clifton <pcjc2@cam.ac.uk> for the Debian GNU/Linux distribution, as it is a Debian-specific script
with the package.
exmenen, exmendis and this manpage were derived from scripts and documentation written by Daniel Stone for the apache2 Debian package.
13 January 2008 EXMENEN(1)