DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd August 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Default Cannot su

I have had a problem since I started using zsh and I havent worked out how to fix it.

Looks like su doesnt like zsh. In the same machine, I can su to root or any user fine. Never have luck with zsh, it always complain:

Code:
[0:2]gu@server~su                                                                                                     
Password:
zsh: suspended (signal)  su
Im 100% sure the password is correct. I can do sudo fine

Any idea how to fix it? It really annoys me. Thanks
Reply With Quote
  #2   (View Single Post)  
Old 23rd August 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

You need to be in wheel group to be able to su
if your not you need to log in as admin or use sudo to add your self to wheel

you can do it by editing /etc/group
Reply With Quote
  #3   (View Single Post)  
Old 23rd August 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

also is zsh listed in /etc/shells?
Reply With Quote
  #4   (View Single Post)  
Old 23rd August 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by 18Googol2 View Post
Im 100% sure the password is correct. I can do sudo fine
This statement is not entirely clear.

Note that su(1) requires a different password than sudo(8). su(1) requires the password of the root account. sudo(8) (if configured as such...) allows root access using the password of a user account.

Likewise, note that FreeBSD will only allow su(1) to succeed (even if the root password is known...) if & only if the user's account is a member of the wheel group.

http://www.freebsddiary.org/su.php

Last edited by ocicat; 23rd August 2008 at 06:18 PM.
Reply With Quote
  #5   (View Single Post)  
Old 23rd August 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Default

I didnt know the different password requirement when suing and sudoing.

But I know I must be a member of wheel group to su successfully. And yes, zsh is listed in the /etc/shells file.

Please note the error message, it said "suspended (signal)". As I understand, I did su successfully, but somehow zsh suspended it and put it to background. In other machine, it behaved the same, but I can bring it back with fg command:

Code:
[0:1]gu@workstation~%su                                                                                                
Password:
zsh: suspended (signal)  su
[17:2]gu@workstation~fg                                                                                         
[1]  + continued  su
workstation#
Also, I can su in bash fine. It just happen in zsh

Last edited by 18Googol2; 23rd August 2008 at 06:31 PM.
Reply With Quote
  #6   (View Single Post)  
Old 23rd August 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Default

Post your zshrc and zprofile configuration files. There might be something in those.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #7   (View Single Post)  
Old 24th August 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Default

Exellent. This was because of the line which colorises the stderr.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick