06-23-2013
fedora uses the bash shell by default. You can verify which shell you logged in by executing echo $SHELL. Also, you can verify the default shell by looking at the last field (7th field between `:') in /etc/passwd for the specific user.
/etc/profile is where every shell looks at login, however this file affects the system globally, i.e every user. That's why there are other files in each user home that can over write these settings and modify the specific shell environment. For bash, after executing /etc/profile it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and execute from only the first one that exist and the permission is set to read.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I just recently installed Redhat linux 7.3 on an old machine and had a question. I had some problems installing and traced them to my sound card. Not wanting to waste time, I selected the smallest download possible (without doing a custom install). I didn't install any of the four optional packages... (4 Replies)
Discussion started by: elpinchegringo
4 Replies
2. UNIX for Dummies Questions & Answers
I'm new to Linux & Unix in general. I have a system running Windows XP & i have a Linux RedHat 7.0 guest OS running in a Virtual Machine (VMware 3.0) now, i have to install the VMware tools for the Linux OS but i don't know how to install anything in Linux. How do i go about it? (i already have the... (1 Reply)
Discussion started by: da_gee
1 Replies
3. UNIX for Dummies Questions & Answers
I am presently trying to install linux on my machine that is already running Win XP. I have tried several different versions. I began with a Mandrake Linux installation cd. I could not bring up the graphical installer so I proceeded with the text installer. Somehow I managed to partition my hard... (6 Replies)
Discussion started by: bobotoes
6 Replies
4. Linux
but where can i download some ebooks about linux howto?
i am a newcomer.
thank you in advance :-) (3 Replies)
Discussion started by: A8harrying
3 Replies
5. Linux
Hi there!!!
I'm new to unix n linux .....i want to learn Linux....I heard that loading Linux u must have high sys config ...Current i've a sys with Win 98....
My system configuration:
Intel Pentium III (800 MHz)
RAM 64MB
HDD 9GB free space in E:\
Current OS windows 98
Could u suggest me... (2 Replies)
Discussion started by: visix
2 Replies
6. UNIX for Dummies Questions & Answers
I use windows Xp, and I am going to format my HD and make some partitions..
I want to have windows Xp and Linux installed in diferent partions.
I want it so when my computer boots, I can choose which OS I would like to load.
I have never installed or used Linux.
so I would like to know if... (3 Replies)
Discussion started by: vit8484
3 Replies
7. AIX
Has anyone ever done this and is it easy to do with SLES9/10? All I can find so far is this link
http://www-941.ibm.com/collaboration/wiki/display/Wikip5/16Jan07+Using+NIM+to+Install+VIO+and+Linux
Can you still use all the feature of autoyast etc?
TIA. (1 Reply)
Discussion started by: backslash
1 Replies
8. UNIX for Advanced & Expert Users
Hi
On Linux systems there is a command called "column".
column - columnate lists
Synopsis
column -tx] -c columns] -s sep] file ...]
Description
The column utility formats its input into multiple columns. Rows are filled before columns. Input is taken from file operands, or,... (3 Replies)
Discussion started by: slashdotweenie
3 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I try to install a library (BLCR) on Ubuntu , i'd like to install it on two machines. This library has a respository named blcr-build , i have this rep in /home/user1 in machine1 and in /home/user2 in machine2. When can i store this repository of the library so i will have the same path... (1 Reply)
Discussion started by: chercheur857
1 Replies
rsh(1M) System Administration Commands rsh(1M)
NAME
rsh, restricted_shell - restricted shell command interpreter
SYNOPSIS
/usr/lib/rsh [-acefhiknprstuvx] [argument...]
DESCRIPTION
rsh is a limiting version of the standard command interpreter sh, used to restrict logins to execution environments whose capabilities are
more controlled than those of sh (see sh(1) for complete description and usage).
When the shell is invoked, it scans the environment for the value of the environmental variable, SHELL. If it is found and rsh is the file
name part of its value, the shell becomes a restricted shell.
The actions of rsh are identical to those of sh, except that the following are disallowed:
o changing directory (see cd(1)),
o setting the value of $PATH,
o pecifying path or command names containing /,
o redirecting output (> and >>).
The restrictions above are enforced after .profile is interpreted.
A restricted shell can be invoked in one of the following ways:
1. rsh is the file name part of the last entry in the /etc/passwd file (see passwd(4));
2. the environment variable SHELL exists and rsh is the file name part of its value; the environment variable SHELL needs to be set in the
.login file;
3. the shell is invoked and rsh is the file name part of argument 0;
4. the shell is invoke with the -r option.
When a command to be executed is found to be a shell procedure, rsh invokes sh to execute it. Thus, it is possible to provide to the end-
user shell procedures that have access to the full power of the standard shell, while imposing a limited menu of commands; this scheme
assumes that the end-user does not have write and execute permissions in the same directory.
The net effect of these rules is that the writer of the .profile (see profile(4)) has complete control over user actions by performing
guaranteed setup actions and leaving the user in an appropriate directory (probably not the login directory).
The system administrator often sets up a directory of commands (that is, /usr/rbin) that can be safely invoked by a restricted shell. Some
systems also provide a restricted editor, red.
EXIT STATUS
Errors detected by the shell, such as syntax errors, cause the shell to return a non-zero exit status. If the shell is being used non-
interactively execution of the shell file is abandoned. Otherwise, the shell returns the exit status of the last command executed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
intro(1), cd(1), login(1), rsh(1), sh(1), exec(2), passwd(4), profile(4), attributes(5)
NOTES
The restricted shell, /usr/lib/rsh, should not be confused with the remote shell, /usr/bin/rsh, which is documented in rsh(1).
SunOS 5.10 1 Nov 1993 rsh(1M)