Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 28 Nov 2014, 16:40
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
adduser misbehaving in Puppy 3.00
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
swarm32


Joined: 16 May 2007
Posts: 12

PostPosted: Thu 11 Oct 2007, 03:25    Post subject:  adduser misbehaving in Puppy 3.00  

I'm trying to set up oppensshd under puppy 3.00 and when I go to add a user it promptly replies
Code:

#adduser -h /home/swarm32  -s /bin/bash swarm32
passwd: unknown user swarm32
#


I'm running this under VMware workstation 5.5.3 as a full hard disk install with devx_300.sfs merged. I'm using the sshd from http://www.murga-linux.com/puppy/viewtopic.php?search_id=1755757103&t=12414.
I'm also using Hibachi 1.0 and planning on hosting a Wolfenstien Enemy territory server headless so i need this to work.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7084
Location: Perth, Western Australia

PostPosted: Thu 11 Oct 2007, 05:39    Post subject:  

did you create /home directory? it may be better to use /root/swarm32, as we do for spot.
Back to top
View user's profile Send private message Visit poster's website 
swarm32


Joined: 16 May 2007
Posts: 12

PostPosted: Thu 11 Oct 2007, 23:23    Post subject:  

Double checked my directory creation, /home is most definitely there. Tried
Code:

#adduser -h /root/swarm32 -s /bin/bash swarm32

and I still get
Code:

passwd:unknown user swarm32


Rolling Eyes
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11131
Location: The Peoples Republic of California

PostPosted: Fri 12 Oct 2007, 04:50    Post subject:  

I think you've discovered a bug - maybe in busybox or in its compilation.
_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
John Doe

Joined: 01 Aug 2005
Posts: 1689
Location: Michigan, US

PostPosted: Fri 12 Oct 2007, 10:48    Post subject:  

try this:

Code:
adduser swarm32
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11131
Location: The Peoples Republic of California

PostPosted: Fri 12 Oct 2007, 20:23    Post subject:  

It seems to my memory that adduser was part of the tinylogin tool set and with 3.00 it is part of busybox.

In any event, with 3.00 adduser --help shows the available arguments and swarm32 did it right and the commands fail.

So it's buggy and doesn't work like its supposed to, even if not using arguments does work, its supposed to accept the arguments and use them.

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
swarm32


Joined: 16 May 2007
Posts: 12

PostPosted: Fri 12 Oct 2007, 20:38    Post subject:  

joy. I decided to whip out my 2.17 disc and use that for this project since adduser and all works correctly. If I had any idea how to fix it I would, but alas I don't have a clue. Hopefully someone will be kind enough to fix this. Very Happy
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11131
Location: The Peoples Republic of California

PostPosted: Fri 12 Oct 2007, 23:23    Post subject:  

Swarm32,

I went to busybox' website and don't find this reported as a bug. Maybe it is a compile time problem, I don't know.

After a little more research, I find the tinylogin tools are also made by the busybox team. And I never found problems with them.

---------------------------------------------
tinylogin cli help from puppy version 2.17.1

Tinylogin v1.4 (2005.08.02-19:41+0000) multi-call binary

Usage: tinylogin [function] [arguments]...
or: [function] [arguments]...

TinyLogin is a multi-call binary that combines several tiny Unix
utilities for handling logins, user authentication, changing passwords,
and otherwise maintaining users and groups on an embedded system. Most
people will create a link to TinyLogin for each function they wish to
use, and TinyLogin will act like whatever it was invoked as.

Currently defined functions:
addgroup, adduser, delgroup, deluser, getty, login, passwd, su,
sulogin, tinylogin, vlock

--------------------------------------------------------
Tinylogin net help address:

http://tinylogin.busybox.net/TinyLogin.html

---------------------------------------------------------

Suppose I should put together a little package for 3.00 for those who need certain things to work?

Maybe Barry will read this and have suggestion or want to fix things -- I'll give time for his input.

Bruce
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7084
Location: Perth, Western Australia

PostPosted: Sat 13 Oct 2007, 05:47    Post subject:  

The tinylogin-1.4 PET package is on ibiblio. You could download and unpack it, and just use the 'tinylogin' executable. The applets are symlinks to it, and you should be able to run an applet like this:

# tinylogin adduser swarm32

If it works, well, I guess we will have to go back to using the tinylogin pkg.
Back to top
View user's profile Send private message Visit poster's website 
swarm32


Joined: 16 May 2007
Posts: 12

PostPosted: Sun 14 Oct 2007, 18:10    Post subject:  

Tinylogin worked flawlessly.
Code:

# tinylogin adduser -h /home/swarm32 -s /bin/bash swarm32
adduser: /home/swarm32: File exists
Changing password for swarm32
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
Enter new password:
Re-enter new password:
Password changed.
#

and then after starting OpenSSH I was able to log in successfully. Smile
Back to top
View user's profile Send private message 
prm49

Joined: 19 Nov 2007
Posts: 6

PostPosted: Wed 09 Jan 2008, 18:02    Post subject: adduser problem confirmed  

I can confirm that adduser is misbehaving as reported above.

When you try to create user "fred", for example, it seems to think the name is already allocated and also seems confused between user and group names. It seems to write to etc/group and etc/gshadow files.

However, I can also confirm that tinylogin-1.4 does offer a flawless work-around. Before using it, you might like to purge any detritus from the ends of the group and gshadow files.

Peter
Back to top
View user's profile Send private message 
trapster


Joined: 28 Nov 2005
Posts: 2029
Location: Maine, USA

PostPosted: Wed 09 Jan 2008, 18:27    Post subject:  

detritus:
Quote:
1. Loose fragments, such as sand or gravel, that have been worn away from rock.
2. Matter produced by the decay or disintegration of an organic substance.


For those of us who have never seen that one before.

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
prm49

Joined: 19 Nov 2007
Posts: 6

PostPosted: Fri 11 Jan 2008, 11:43    Post subject: Detritus  

Sorry - detritus has become colloquial UK English for junk or garbage.

Oxford English Dictionary includes "debris" as a synonym, and define debris as:

scattered fragments, wreckage, drifted accumulation.

I guess you get the idea!

Peter
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0731s ][ Queries: 12 (0.0043s) ][ GZIP on ]