Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2007, 08:23 AM
fmele fmele is offline
Junior Member
 
Join Date: Mar 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems after adduser
Hi guys,
my first post in this forum would be a congratulation for the excellent job .... that was a few days ago, since my PCBSD is broken!
I chose PCBSD for the packaging system, I found the idea of a self-containing software simply wonderful!!
First installation took me about 3 weeks to have a full desktop/development enviroment: printer and PAMP gave me a lot of problems, the first solved with an update, for PAMP I had to change hostname (pcbsd-973. instead of pcbsd-973 .. someone must tell me why that point by default!!!).
I had to reinstall everything after kicker disappeared and made some mistakes trying to have it back! Second installation took about a handful of hours

Before installing vsftpd's pbi I created a new user (ftpuser) with adduser command.
Everything seemed to work fine, but now I cannot access as new user and, most of all, now I cannot do root's things such as opening system update manager, neither installing new software.
I can't delete ftpuser and creating a new one, with a full set of permissions, didn't work.

Please help before I give up. I really love this OS!
Reply With Quote
  #2  
Old 03-24-2007, 04:09 PM
dracheflieger dracheflieger is offline
Senior Member
 
Join Date: May 2006
Location: Greater State of Northern Kaliforneea
Posts: 2,880
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I don't know if you should have created that user before you install that PBI (maybe it makes its own user?...I just don't know) but if your reboot, hit #4 at the PC-BSD ASCII screen and boot into single user. I don't remember if you have to
Code:
mount -y /
mount -a
but you might have to so you can edit things. Once you're this far,
Code:
edit /etc/group
and you can add your user to the wheel group that will allow you to su in the graphical mode (once you save and reboot) and pass on to other things after you enter the root password.

Solarin is working on a new User Manager for PC-BSD 1.4 that looks and works quite well.
Reply With Quote
  #3  
Old 03-24-2007, 06:37 PM
fmele fmele is offline
Junior Member
 
Join Date: Mar 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Thanks for the reply, but I'm still in the wheel group.
After adding user my user has "strange" behavior: I cannot open system update manager (or any other) or, if it opens, it gives me a "This program can be run only as root. Click the Administrator Mode button below. .." message, but there is no Administrator button and, after some minutes working, i cannot open a konsole.
The boot before this changes font resolution ... not font size, just the resolution. I cannot save kicker personalizations. Calling ls command gave me problems and trying opening ee or kwrite gave "too many editors opened" error.... do I have to continue?

The good news is that a I have a kde crash trace and I was able to generate a diagnostic sheet.
This is the first report line:

Quote:
kern.maxfiles limit exceeded by uid 0, please see tuning(7).

BTW I removed ftpuser and yes, there's no need to create a new user for vsftpd pbi!


... ok .. I gave system o last chance before posting: now I successfully installed vsftpd pbi, but still no PC-BSD Online Update window!!!
Reply With Quote
  #4  
Old 03-24-2007, 07:02 PM
dracheflieger dracheflieger is offline
Senior Member
 
Join Date: May 2006
Location: Greater State of Northern Kaliforneea
Posts: 2,880
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Weird...if you can gain root access (open konsole, login, as root) and run vipw and look at root's line and your line.

Root's should have :0:0::0:0:Charlie &:/root:/bin/csh past the hash for the password and yours should have something like :1001:1001::0:0:your_user_name:/home/your_user_name:/bin/tcsh

Maybe something is out of sorts.
Reply With Quote
  #5  
Old 03-25-2007, 06:54 PM
fmele fmele is offline
Junior Member
 
Join Date: Mar 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default
These are the lines your asked for:

Code:
root:AAAAA/BBBBBBB.:0:0::0:0:Charlie &:/root:/bin/csh
and
Code:
my_user_name:AAAAA.BBBBB:1001:1001::0:0:my_user_name:/home/my_user_name:/bin/bash
It looks ok, isn't it?
Reply With Quote
  #6  
Old 03-27-2007, 01:20 AM
dracheflieger dracheflieger is offline
Senior Member
 
Join Date: May 2006
Location: Greater State of Northern Kaliforneea
Posts: 2,880
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I've never used bash...maybe that is your problem (someone here should know) as csh/tcsh is the default shell for *BSD
Reply With Quote
  #7  
Old 03-27-2007, 06:50 AM
g0lem g0lem is offline
Senior Member
 
Join Date: Apr 2006
Posts: 572
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g0lem
Default
bash isn't located in /bin/bash but in /usr/local/bin/bash

i STRONGLY recommend that you replace the shell with one of the defaults (sh, csh, tcsh, zsh(?) ), because you might experience strange things... such as those above?

anyway, change the shell to (say) /bin/csh and see if it works
good luck
Reply With Quote
  #8  
Old 03-27-2007, 10:11 AM
fmele fmele is offline
Junior Member
 
Join Date: Mar 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I never experienced problems using bash before and I added ftpuser using root'shell that is csh!
I'll try tcsh and I'll let you know into one day.

Thanks
Reply With Quote
  #9  
Old 03-27-2007, 10:13 AM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by fmele
I never experienced problems before using bash and I added ftpuser using root'shell that is csh!
I'll try tcsh and I'll let you know into one day.
tcsh and csh is the same.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #10  
Old 03-28-2007, 07:21 AM
g0lem g0lem is offline
Senior Member
 
Join Date: Apr 2006
Posts: 572
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g0lem
Default
Originally Posted by fmele
I never experienced problems using bash before and I added ftpuser using root'shell that is csh!
I'll try tcsh and I'll let you know into one day.

Thanks
the problem isn't using bash (i don't have anything against it), but the path specified: /bin/bash instead of /usr/local/bin/bash (because it is an installed application);
of course, symlinks can be made, but in case something happens (such as inability to properly mount /), /usr wouldn't be available, thus neither bash.
what i said was just a precaution measure, nothing else :P
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 05:45 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.