niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » Distributions » Suse
/bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit
Post new topic   Reply to topic Page 1 of 1 [13 Posts] View previous topic :: View next topic
Author Message
Mazilo
*nix forums beginner


Joined: 17 Jul 2006
Posts: 12

PostPosted: Wed Jul 19, 2006 1:27 pm    Post subject: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

If I edit the /etc/passwd file and replace /bin/bash with /bin/tcsh for
a root and/or user account, that account can not login through the GUI.
In other words, after the user enters the username + password and hit
the ENTER key, he will only get to the next blank page (blue color) and
after about three minutes the system will time out with the main login
prompt again. Can anyon please help to make this works? My users prefer
to use TCSH instead of BASH shell.
Back to top
Malcolm
*nix forums Guru


Joined: 24 Mar 2005
Posts: 722

PostPosted: Wed Jul 19, 2006 1:36 pm    Post subject: Re: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

On 19 Jul 2006 06:27:42 -0700
"Mazilo" <mazilo@gmail.com> wrote:

Quote:
If I edit the /etc/passwd file and replace /bin/bash with /bin/tcsh
for a root and/or user account, that account can not login through
the GUI. In other words, after the user enters the username +
password and hit the ENTER key, he will only get to the next blank
page (blue color) and after about three minutes the system will time
out with the main login prompt again. Can anyon please help to make
this works? My users prefer to use TCSH instead of BASH shell.

Hi

Do a which on tcsh, think you will find it is in /usr/bin not /bin

--
Cheers
Malcolm °¿°
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Wed Jul 19, 2006 1:51 pm    Post subject: Re: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

Malcolm wrote:
Quote:
Do a which on tcsh, think you will find it is in /usr/bin not /bin

That is a soft link to /bin:
houghi@penne : l /usr/bin/tcsh
lrwxrwxrwx 1 root root 9 2006-07-07 18:13 /usr/bin/tcsh -> /bin/tcsh*

Sorry, no sollution for the OP.
--
houghi Please do not toppost http://houghi.org
Please go to : http://tinyurl.com/aqe6y (Google site)
and vote for 'Default quoting of previous message in replies'
> This was a broadcast from the netpolice.
Back to top
Harold Stevens
*nix forums Guru


Joined: 08 Apr 2005
Posts: 384

PostPosted: Wed Jul 19, 2006 2:39 pm    Post subject: Re: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

In <20060719083614.61df4218@oscar.home.lan> Malcolm:

[Snip...]

Quote:
Do a which on tcsh, think you will find it is in /usr/bin not /bin

FWIW, YaST also provides for changing a user's login shell:

Security and Users -> User Management -> Login/Edit -> Details -> Login Shell

(SuSE 10.0)

--
Regards, Weird (Harold Stevens) * IMPORTANT EMAIL INFO FOLLOWS *
Pardon any bogus email addresses (wookie) in place for spambots.
Really, it's (wyrd) at airmail, dotted with net. DO NOT SPAM IT.
Kids jumping ship? Looking to hire an old-school type? Email me.
Back to top
Chris Cox
*nix forums Guru


Joined: 24 Feb 2005
Posts: 576

PostPosted: Wed Jul 19, 2006 2:55 pm    Post subject: Re: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

Mazilo wrote:
Quote:
If I edit the /etc/passwd file and replace /bin/bash with /bin/tcsh for
a root and/or user account, that account can not login through the GUI.
In other words, after the user enters the username + password and hit
the ENTER key, he will only get to the next blank page (blue color) and
after about three minutes the system will time out with the main login
prompt again. Can anyon please help to make this works? My users prefer
to use TCSH instead of BASH shell.


I just setup a user via YaST with tcsh as the shell... worked fine.
You might want to try doing that instead of modifying an existing
account.... then copy their home data over... just an idea.
Back to top
Malcolm
*nix forums Guru


Joined: 24 Mar 2005
Posts: 722

PostPosted: Wed Jul 19, 2006 4:12 pm    Post subject: Re: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

houghi wrote:

Quote:
Malcolm wrote:
Do a which on tcsh, think you will find it is in /usr/bin not /bin

That is a soft link to /bin:
houghi@penne : l /usr/bin/tcsh
lrwxrwxrwx 1 root root 9 2006-07-07 18:13 /usr/bin/tcsh -
/bin/tcsh*

Sorry, no sollution for the OP.
Dang, so it is. Well I tried both /bin and /usr/bin and they both

worked fine?

Wonder if there is a typo in the /etc/passwd file?

--
Cheers
Malcolm °¿°
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Wed Jul 19, 2006 4:49 pm    Post subject: Re: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

Malcolm wrote:
Quote:
houghi wrote:

Malcolm wrote:
Do a which on tcsh, think you will find it is in /usr/bin not /bin

That is a soft link to /bin:
houghi@penne : l /usr/bin/tcsh
lrwxrwxrwx 1 root root 9 2006-07-07 18:13 /usr/bin/tcsh -
/bin/tcsh*

Sorry, no sollution for the OP.
Dang, so it is. Well I tried both /bin and /usr/bin and they both
worked fine?

Wonder if there is a typo in the /etc/passwd file?

Could be. The easiest might be to do the change with YaST, Security and
Users, User Management, <select user>, Edit, Details, Login Shell, click
the down arrow, select '/bin/tsh' and fronm there you are on your own.

Now if this does not work, the user can change the shell he uses:
`man chsh`. Let THEM do the work and screw up the their account.

Tell them: Hey, ig you are so smart and don't want to work with tcsh,
how come YOU have not edited it? Also all they need to do (if everything
else fails) is put tcsh in .bashrc and it starts when you open a
terminal.
--
houghi Please do not toppost http://houghi.org
Please go to : http://tinyurl.com/aqe6y (Google site)
and vote for 'Default quoting of previous message in replies'
> This was a broadcast from the netpolice.
Back to top
Clive Eisen
*nix forums beginner


Joined: 04 Feb 2005
Posts: 18

PostPosted: Wed Jul 19, 2006 5:05 pm    Post subject: Re: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

houghi wrote:
Quote:
Malcolm wrote:
houghi wrote:

Malcolm wrote:

Tell them: Hey, ig you are so smart and don't want to work with tcsh,
how come YOU have not edited it? Also all they need to do (if everything
else fails) is put tcsh in .bashrc and it starts when you open a
terminal.

exec tcsh
Back to top
Mazilo
*nix forums beginner


Joined: 17 Jul 2006
Posts: 12

PostPosted: Wed Jul 19, 2006 6:56 pm    Post subject: Re: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

Malcolm wrote:
Quote:
On 19 Jul 2006 06:27:42 -0700
"Mazilo" <mazilo@gmail.com> wrote:

If I edit the /etc/passwd file and replace /bin/bash with /bin/tcsh
for a root and/or user account, that account can not login through
the GUI. In other words, after the user enters the username +
password and hit the ENTER key, he will only get to the next blank
page (blue color) and after about three minutes the system will time
out with the main login prompt again. Can anyon please help to make
this works? My users prefer to use TCSH instead of BASH shell.

Hi
Do a which on tcsh, think you will find it is in /usr/bin not /bin

--
Cheers
Malcolm °¿°

Wow, I was surprised to see so many responses. About two minutes I
posted this, I realized the mistakes I made. It was the "setenv
DISPLAY" I added to /etc/csh.cshrc file that caused the problem. After
I fixed this line, everything went back to normal.

Thank you everyone who responded to my post and I believe ohers will
benefit from your responses, too.
Back to top
Theo v. Werkhoven
*nix forums Guru Wannabe


Joined: 08 Apr 2005
Posts: 172

PostPosted: Wed Jul 19, 2006 8:38 pm    Post subject: Re: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

The carbonbased lifeform Mazilo inspired alt.os.linux.suse with:
Quote:

Malcolm wrote:
On 19 Jul 2006 06:27:42 -0700
"Mazilo" <mazilo@gmail.com> wrote:

If I edit the /etc/passwd file and replace /bin/bash with /bin/tcsh
for a root and/or user account, that account can not login through
the GUI. In other words, after the user enters the username +
password and hit the ENTER key, he will only get to the next blank
page (blue color) and after about three minutes the system will time
out with the main login prompt again. Can anyon please help to make
this works? My users prefer to use TCSH instead of BASH shell.

Hi
Do a which on tcsh, think you will find it is in /usr/bin not /bin

--
Cheers
Malcolm °¿°

Wow, I was surprised to see so many responses. About two minutes I
posted this, I realized the mistakes I made. It was the "setenv
DISPLAY" I added to /etc/csh.cshrc file that caused the problem. After
I fixed this line, everything went back to normal.

Thank you everyone who responded to my post and I believe ohers will
benefit from your responses, too.

For next time: your users can do this for them selfs too, see chsh(1)
E.g.:
$ chsh -s /bin/tcsh
Changing login shell for theo.
Password:
Shell changed.

Theo
--
theo at van-werkhoven.nl ICQ:277217131 SuSE Linux
linuxcounter.org: 99872 Jabber:muadib at jabber.xs4all.nl AMD XP3000+ 1024MB
"ik _heb_ niets tegen Microsoft, ik heb iets tegen
de uitwassen *van* Microsoft"
Back to top
Lawrence D'Oliveiro
*nix forums Guru


Joined: 25 Mar 2005
Posts: 723

PostPosted: Fri Jul 21, 2006 6:54 am    Post subject: Re: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

In message <1153335367.645801.126070@h48g2000cwc.googlegroups.com>, Mazilo
wrote:

Quote:
Malcolm wrote:
On 19 Jul 2006 06:27:42 -0700
"Mazilo" <mazilo@gmail.com> wrote:

If I edit the /etc/passwd file and replace /bin/bash with /bin/tcsh
for a root and/or user account, that account can not login through
the GUI.

Wow, I was surprised to see so many responses. About two minutes I
posted this, I realized the mistakes I made.

By the way, why are you bothering with tcsh at all? It's not worth using as
a shell. I say this after using csh/tcsh for some years before switching to
bash.
Back to top
Mazilo
*nix forums beginner


Joined: 17 Jul 2006
Posts: 12

PostPosted: Fri Jul 21, 2006 1:11 pm    Post subject: Re: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

Lawrence D'Oliveiro wrote:
Quote:
In message <1153335367.645801.126070@h48g2000cwc.googlegroups.com>, Mazilo
wrote:

Malcolm wrote:
On 19 Jul 2006 06:27:42 -0700
"Mazilo" <mazilo@gmail.com> wrote:

If I edit the /etc/passwd file and replace /bin/bash with /bin/tcsh
for a root and/or user account, that account can not login through
the GUI.

Wow, I was surprised to see so many responses. About two minutes I
posted this, I realized the mistakes I made.

By the way, why are you bothering with tcsh at all? It's not worth using as
a shell. I say this after using csh/tcsh for some years before switching to
bash.

It really doesn't matter whether you and I don't and/or do like tcsh or
even tcsh isn't worth to use. It is just something my users prefer.
They have their reasons to stick with tcsh. Perhaps, they have their
own tcsh scripts. Who knows tcsh shell gives them better performance
than bash and/or any other shell. It is just YMMV and I never bother
them.
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Fri Jul 21, 2006 1:53 pm    Post subject: Re: /bin/tcsh vs. OpenSuSE-10.1 on AMD 64-bit Reply with quote

Mazilo wrote:
Quote:
By the way, why are you bothering with tcsh at all? It's not worth using as
a shell. I say this after using csh/tcsh for some years before switching to
bash.

It really doesn't matter whether you and I don't and/or do like tcsh or
even tcsh isn't worth to use. It is just something my users prefer.

Indeed. Yet you still can let them make their own choice by using `chsh`
to change it for themselves to whatever you have on that machine.

As bash is default on most machines, I would sugest that you leave that
as a default. If somebody wishes to change his default, tell him to use
chsh. If he is unable to do that, then he most likely does not have a
real reason to change.

If you want to have it as a default (unwise in my opinion, especially as
the user can use chsh) then you need to do some other changes, so that
it is selected by default.
--
houghi Please do not toppost http://houghi.org
Let's not be too tough on our own ignorance. It's the thing that makes
America great. If America weren't incomparably ignorant, how could we
have tolerated the last eight years? -- Frank Zappa, in 1988
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [13 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 8:32 pm | All times are GMT
navigation Forum index » *nix » Linux » Distributions » Suse
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts OpenSuse-10.1 supports G77 compiler for AMD 64-bit? Mazilo Suse 3 Tue Jul 18, 2006 1:21 pm
No new posts Setting up a ralink chipset Network Adapter in opensuse 10.1 Ambroise Suse 6 Fri Jul 14, 2006 4:33 pm
No new posts tcsh autocomplete Ronny Mandal shell 1 Tue Jul 04, 2006 8:19 pm
No new posts autocomplete killall in tcsh david shell 10 Sun Jul 02, 2006 7:14 pm
No new posts grep with regex in tcsh Ken shell 9 Wed Jun 28, 2006 7:27 pm

Problem Mortgage | Apply for Credit Card | Houses for Sale | Web Advertising | Property Search
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1800s ][ Queries: 16 (0.0623s) ][ GZIP on - Debug on ]