Unix administration - Dumb Unix login question

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > August 2007 > Dumb Unix login question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Dumb Unix login question
kipps

2007-07-31, 1:20 pm

change korn to c shell as login shell, How do I do that?

nobody

2007-07-31, 1:20 pm

On Jul 31, 1:38 pm, kipps <k_par...@yahoo.com> wrote:
> change korn to c shell as login shell, How do I do that?


Use the command "passwd -e". It will show you the actual login shell
and prompt you for new login shell.

Todd H.

2007-07-31, 7:20 pm

kipps <k_partha@yahoo.com> writes:

> change korn to c shell as login shell, How do I do that?


man chsh

--
Todd H.
http://www.toddh.net/
kipps

2007-07-31, 7:20 pm

On Jul 31, 2:54 pm, comph...@toddh.net (Todd H.) wrote:
> kipps <k_par...@yahoo.com> writes:
>
> man chsh
>
> --
> Todd H.http://www.toddh.net/


Neither of the above work, invalid login or invalid shell is what I
get respectively!!

Sharif Rizal

2007-07-31, 7:20 pm

On Jul 31, 2:46 pm, kipps <k_par...@yahoo.com> wrote:
> On Jul 31, 2:54 pm, comph...@toddh.net (Todd H.) wrote:
>
>
>
>
> Neither of the above work, invalid login or invalid shell is what I
> get respectively!!


man usermod
or,
If you have root access, vi the /etc/passwd file and change the shell
for the user then log back in.

Todd H.

2007-07-31, 7:20 pm

kipps <k_partha@yahoo.com> writes:

> On Jul 31, 2:54 pm, comph...@toddh.net (Todd H.) wrote:
>
> Neither of the above work, invalid login or invalid shell is what I
> get respectively!!


Look in /etc/shells should list your options. You need the full
path.

--
Todd H.
http://www.toddh.net/
nelson.bensley@gmail.com

2007-07-31, 7:20 pm

or put something like this in ~/.profile ?
[ -x /usr/bin/csh ] && exec /usr/bin/csh
only reason i mention it, when i was starting out i changed my shell
in the passwd file to /usr/local/bin/bash and couldn't login when /usr/
local didn't mount once....

kipps

2007-08-01, 7:21 am

On Jul 31, 6:24 pm, nelson.bens...@gmail.com wrote:
> or put something like this in ~/.profile ?
> [ -x /usr/bin/csh ] && exec /usr/bin/csh
> only reason i mention it, when i was starting out i changed my shell
> in the passwd file to /usr/local/bin/bash and couldn't login when /usr/
> local didn't mount once....


Not one of the above work!! NOT ONE, lot of guessing, my log in
shellis ksh!

tarstarkus

2007-08-01, 1:21 pm

On Aug 1, 8:08 am, kipps <k_par...@yahoo.com> wrote:
> On Jul 31, 6:24 pm, nelson.bens...@gmail.com wrote:
>
>
> Not one of the above work!! NOT ONE, lot of guessing, my log in
> shellis ksh!


OK then back to the very basics.
grep "username" /etc/passwd should show you some output like;
username:x:5678:300::/home/username:/usr/bin/ksh 5678 is the uid and
300 is the group id. If you can edit /etc/passwd
then you can change /usr/bin/ksh to /usr/bin/csh.
type "env' at your unix prompt.. look for SHELL it will show what your
login shell is set to.
or echo $SHELL....
if you type /usr/bin/csh at your prompt it should put you in csh. echo
$SHELL will still show your login shell.
What OS are you running? that would help us understand why "not one of
the above work?"
If you don't have root access to edit the passwd file you will have to
talk with the sysadmin..
My man page says that passwd -e requires the root permissions and
therefore will not work for a user level login
I could not find a man for chsh on solaris 9. So tell us a little bit
more about your environment..

Todd H.

2007-08-01, 1:21 pm

kipps <k_partha@yahoo.com> writes:

> On Jul 31, 6:24 pm, nelson.bens...@gmail.com wrote:
>
> Not one of the above work!! NOT ONE, lot of guessing, my log in
> shellis ksh!


Talk to someone with root priv's for that system to help you out.
Probably an administrator.

You left us to guess since you never did indicate what operating
system we're dealing with.

--
Todd H.
http://www.toddh.net/
kipps

2007-08-01, 1:21 pm

On Aug 1, 11:11 am, comph...@toddh.net (Todd H.) wrote:
> kipps <k_par...@yahoo.com> writes:
>
>
> Talk to someone with root priv's for that system to help you out.
> Probably an administrator.
>
> You left us to guess since you never did indicate what operating
> system we're dealing with.
>
> --
> Todd H.http://www.toddh.net/


I am working on HP unix systems, no su permissions. Obviously I can
type in csh everytime I open a xterm window

Michael Tosch

2007-08-01, 1:21 pm

kipps wrote:
> On Jul 31, 6:24 pm, nelson.bens...@gmail.com wrote:
>
> Not one of the above work!! NOT ONE, lot of guessing, my log in
> shellis ksh!
>


Try the following

chsh
passwd -e
passwd -e -r nis
passwd -e -r nisplus
passwd -e -r ldap

and each time try the shell names

/bin/csh
/bin/tcsh
/usr/local/bin/tcsh

If none of these work, look at restrictions in
/etc/shells
or ask your NIS/NISPLUS/LDAP Administrator which shells are allowed.

Less guessing if you provide us with the result of the commands

uname -a

grep passwd /etc/nsswitch.conf

cat /etc/shells


--
Michael Tosch @ hp : com
Moe Trin

2007-08-01, 7:18 pm

On Wed, 01 Aug 2007, in the Usenet newsgroup comp.unix.admin, in article
<1185970081.529026.173730@i13g2000prf.googlegroups.com>, kipps wrote:

On Tue, 31 Jul 2007, in the Usenet newsgroup comp.unix.admin, in article
<1185903515.734661.38360@z28g2000prd.googlegroups.com>, kipps wrote:

>change korn to c shell as login shell, How do I do that?


[One person suggests "passwd -e" - another "man chsh"]

On Tue, 31 Jul 2007, in the Usenet newsgroup comp.unix.admin, in article
<1185907614.512088.182470@j4g2000prf.googlegroups.com>, kipps replied:

>Neither of the above work, invalid login or invalid shell is what I
>get respectively!!


[three more suggestions: "usermod" (or "vi passwd" if root), "/etc/shells"
shows what?, and exec'ing /usr/bin/csh in ~/.profile]

On Wed, 01 Aug 2007, in the Usenet newsgroup comp.unix.admin, in article
<1185970081.529026.173730@i13g2000prf.googlegroups.com>, kipps replied:

>Not one of the above work!! NOT ONE, lot of guessing, my log in
>shellis ksh!


Please don't tell us that they "don't work". Tell us what happened when
you tried them. Did the computer catch on fire, or merely give an error
message? You know, something like "Bad Command Or FileName".

Actually - the only thing we know is that you are posting from some
version of windoze - how about _you_ telling people what O/S you are
using, what is the content of the line in /etc/passwd that pertains to
you, what is the content of /etc/shells, and the result of the command
'which csh' - So, let's see

uname -a
grep YOUR_USERNAME /etc/passwd
grep csh /etc/shells
which csh

and if the later doesn't produce an output, then run

find / -type f -name csh -exec ls -l {} \; 2>/dev/null

and show what that produces.

Finally, if you are not 'root', then ask the person who is.

Old guy

Todd H.

2007-08-01, 7:18 pm

kipps <k_partha@yahoo.com> writes:

> On Aug 1, 11:11 am, comph...@toddh.net (Todd H.) wrote:
>
> I am working on HP unix systems, no su permissions.


So was everyone who does have admin rights on this box killed in a
fire or terrible flood?

Why ask the person who can actually help you when you can ask
thousands of anonymous folks to guess at your poorly constrained
question!

Or are your admins growing as irritated with you as those who've tried
to help you on this thread are (only to be responded to with a rather
unenlightening and thankless "It doesn't work!").

Best Regards,
--
Todd H.
http://www.toddh.net/
kipps

2007-08-01, 7:18 pm

On Aug 1, 3:46 pm, comph...@toddh.net (Todd H.) wrote:
> kipps <k_par...@yahoo.com> writes:
>
>
>
>
>
>
> So was everyone who does have admin rights on this box killed in a
> fire or terrible flood?
>
> Why ask the person who can actually help you when you can ask
> thousands of anonymous folks to guess at your poorly constrained
> question!
>
> Or are your admins growing as irritated with you as those who've tried
> to help you on this thread are (only to be responded to with a rather
> unenlightening and thankless "It doesn't work!").
>
> Best Regards,
> --
> Todd H.http://www.toddh.net/- Hide quoted text -
>
> - Show quoted text -


Thank you, my apologies! I'll just type in csh!!
God Save Unix [eunichs?]


Todd H.

2007-08-01, 7:18 pm

kipps <k_partha@yahoo.com> writes:

> Thank you, my apologies! I'll just type in csh!!


Why are you so afraid to talk to your admin?

--
Todd H.
http://www.toddh.net/
kipps

2007-08-01, 7:18 pm

On Aug 1, 4:27 pm, comph...@toddh.net (Todd H.) wrote:
> kipps <k_par...@yahoo.com> writes:
>
> Why are you so afraid to talk to your admin?
>
> --
> Todd H.http://www.toddh.net/


We have none, we call the help desk and after 20mts of hold and 10mts
explaining the problem they may get back in 2 or 3 days if one is
lucky!!

I thought this would be simpler and faster!!

nelson.bensley@gmail.com

2007-08-01, 7:18 pm

xterm window eh - didn't think of that, was thinking along the sshy
lines (what was that about assuming...) try putting something like
SHELL=/usr/bin/csh
in ~/.dtprofile (if HPUX has one - dunno i stay away from it these
days). note to change the path if csh isn't there

Dave Hinz

2007-08-02, 7:19 am

On Wed, 01 Aug 2007 05:08:01 -0700, kipps <k_partha@yahoo.com> wrote:
> On Jul 31, 6:24 pm, nelson.bens...@gmail.com wrote:
>
> Not one of the above work!! NOT ONE, lot of guessing, my log in
> shellis ksh!


Please, go read and learn from this article before nobody wants to help
you:
http://catb.org/~esr/faqs/smart-questions.html


Dave Hinz

2007-08-02, 7:19 am

On Wed, 01 Aug 2007 13:21:43 -0700, kipps <k_partha@yahoo.com> wrote:
> On Aug 1, 4:27 pm, comph...@toddh.net (Todd H.) wrote:
[vbcol=seagreen]
> We have none, we call the help desk and after 20mts of hold and 10mts
> explaining the problem they may get back in 2 or 3 days if one is
> lucky!!
> I thought this would be simpler and faster!!


If you showed interest in learning and didn't get defensive when asked
clarifying questions, it could have been. But - this isn't online free
consulting helpdesk here.
sara_k0707@yahoo.com

2007-08-02, 1:20 pm

On Aug 1, 6:23 pm, nelson.bens...@gmail.com wrote:
> xterm window eh - didn't think of that, was thinking along the sshy
> lines (what was that about assuming...) try putting something like
> SHELL=/usr/bin/csh
> in ~/.dtprofile (if HPUX has one - dunno i stay away from it these
> days). note to change the path if csh isn't there


Understand your frustration, you can put the line SHELL=/usr/bin/csh
in your .pers_env file. Will get you to a csh, but you may still need
to source .cshrc to invoke all the aliases filec etc!! Good luck! Been
there, done that!

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com