12-19-2003
how to change sh to tsch UNIX
My oracle account uses tsch to use .cshrc. "Somehow" it was switch to sh and changed the login environment.
My question is who has the right to change sh to tsch or other shells? How can I change back the original setting(tsch) from sh?
This is what is appear in my /etc/passwd:
oracle:x:108:101:Oracle:/export/home/oracle:/bin/sh
Thanks in advance.
P.S. I am currently running SUN 5.9
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there. This is probably a very stupid question, but...
How do I change or set the time in UNIX? I am taking care of a Sun Ultra 5 running SunOS 5.7 and I can't figure out how to change the time.
Help. (3 Replies)
Discussion started by: Tannim
3 Replies
2. Filesystems, Disks and Memory
I want to change a file permission which just I can list , read, and write it. So, does anybody can tell me the command? (2 Replies)
Discussion started by: a8111978
2 Replies
3. UNIX for Dummies Questions & Answers
Hi Guys,
I have an old unix server (HP 9000) which we just use to view history of data. which has a private IP of 121.1.1.n. At present we change our IP addresses (subnetting) and I have to change the old IP of UNIX to 10.10.4.n.
Could someone help me how to do or what the command is?... (4 Replies)
Discussion started by: wide angle
4 Replies
4. UNIX for Dummies Questions & Answers
#! /usr/tsch
foreach f (`cat contacts.list`)
awk '{printf ($2 in a) ? ","$5 : (NR>1) ? RS $2 FS $5 : $2 FS $5; a} END{print e}' $f > $f_inter.map
end
My file: cat contacts.list is just a list of files.
I get this error:
doit_contacts2intermap.sh: Command not found.
Thanks! (1 Reply)
Discussion started by: lost
1 Replies
5. Shell Programming and Scripting
Hi,
my code is:
------------------------------
set r=`ls -L $source_dir/*.snvf`
echo AAA
------------------------------
If does file does not exists I got on the screen
ls: No match.
AAA
How can I remove the "ls: No match." from being printed out
Regards,
Ziv (2 Replies)
Discussion started by: zivsegal
2 Replies
6. UNIX for Advanced & Expert Users
System: Digital Personal Workstation 433a
Processor: Digital Alpha 21164, 433 MHz
Memory: 64 MB
OS: Digital Unix Console (SRM), Digital Unix V4.0D
This type of conmputer run radar application. What i would like to know is whether i can change OS or not.
Thanks in advance. (7 Replies)
Discussion started by: akz
7 Replies
7. UNIX for Dummies Questions & Answers
Hi everyone.
I have some questions...
I have a 2nd pc with windows and i want to change it to unix cause i want to learn unix so can someone tell me how to get unix os and how to change it from windows?:D (6 Replies)
Discussion started by: NParas
6 Replies
8. Shell Programming and Scripting
Hi Everyone,
I am using gdb-7.5 to connect to the target. When I gave the./configure --target=xyz --build=i686-pc-mingw32 --host=i686-pc-mingw32 command then
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... xyz-mingw32... (3 Replies)
Discussion started by: Heeka
3 Replies
9. Homework & Coursework Questions
Hey everyone,
I am almost done with this assignment I have to do but there is one last thing nagging me that I can't seem to find. In my script I am feeding line by line to a ./test file and I am getting the return answer correctly. The goal is to test the current script (check.sh) and if it's... (1 Reply)
Discussion started by: tastybrownies
1 Replies
10. UNIX for Beginners Questions & Answers
I had a router change and needed to change the ip in some machines.
I have two machines on SCO Unix 3.2.4.2
I changed the IP in my chain(relinked kernel, used as default) and in /etc/hosts on both.
One is fine. The other I am unable to get to with putty.
Is there anything else I would need to... (11 Replies)
Discussion started by: steveo314
11 Replies
LEARN ABOUT OPENDARWIN
chsh
CHSH(1) User Commands CHSH(1)
NAME
chsh - change login shell
SYNOPSIS
chsh [options] [LOGIN]
DESCRIPTION
The chsh command changes the user login shell. This determines the name of the user's initial login command. A normal user may only change
the login shell for her own account; the superuser may change the login shell for any account.
OPTIONS
The options which apply to the chsh command are:
-h, --help
Display help message and exit.
-R, --root CHROOT_DIR
Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory.
-s, --shell SHELL
The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.
If the -s option is not selected, chsh operates in an interactive fashion, prompting the user with the current login shell. Enter the new
value to change the shell, or leave the line blank to use the current one. The current shell is displayed between a pair of [ ] marks.
NOTE
The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser,
and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing /bin/rsh
in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell
back to its original value.
FILES
/etc/passwd
User account information.
/etc/shells
List of valid login shells.
/etc/login.defs
Shadow password suite configuration.
SEE ALSO
chfn(1), login.defs(5), passwd(5).
shadow-utils 4.5 01/25/2018 CHSH(1)