Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Add New User, Problems adding new users< Next Oldest | Next Newest >
doccpu Offline





Group: Members
Posts: 3
Joined: July 2004
Posted: July 14 2004,13:32 QUOTE

I'm in the check out phase, still booting from CDROM.  Though the passwd file is not a link to the cdrom, but exists in ramdisk, I can't seem to add a user.  The adduser command says it can't update the file.

I've tried manually editing the file and adding in a user.  I can save the file with the new user in it, but when I run "chpasswd" to set the password, the chpasswd command indcates an error updating the file.  However, I can use chpassswd to change the command of an old entry -- say user damnsmall.

I even added the new user by simply copying and pasting the damnsmall user line, than changing name and account number.  Sill chpasswd indicates an error when updating the file.
Back to top
Profile PM 
AwPhuch Offline





Group: Members
Posts: 1404
Joined: April 2004
Posted: July 14 2004,19:44 QUOTE

Quote (doccpu @ July 14 2004,09:32)
I'm in the check out phase, still booting from CDROM.  Though the passwd file is not a link to the cdrom, but exists in ramdisk, I can't seem to add a user.  The adduser command says it can't update the file.

I've tried manually editing the file and adding in a user.  I can save the file with the new user in it, but when I run "chpasswd" to set the password, the chpasswd command indcates an error updating the file.  However, I can use chpassswd to change the command of an old entry -- say user damnsmall.

I even added the new user by simply copying and pasting the damnsmall user line, than changing name and account number.  Sill chpasswd indicates an error when updating the file.

Thats because its running from the CDROM, which is unwriteable...

If you had a HD install thats a different story

Brian
AwPhuch


--------------
http://www.frappr.com/dsl <-- Where do you use DSL?
http://www.smoothwall.org <-- Ultimate firewall for the world!
http://boinc.mundayweb.com/one/stats.php/userID:6107 <--My BOINC stats!
./S99LinuxRevolution start
Back to top
Profile PM WEB 
doccpu Offline





Group: Members
Posts: 3
Joined: July 2004
Posted: July 14 2004,21:43 QUOTE

That could be.  I thought I was taking care of that in that the passwd file is "not" a link to the cdrom (as are the hosts.allow and some others), but a copy in ram disk.  My intention was to then edit this file (which I can, but cannot put an encripted password in with editor), and list /etc/passwd in the backup list on my backup driver.

Trouble is, while I can edit it, chpasswd and adduser must be reverting to the cdrom, even though the file I'm working is on RAM disk.  

I suspect the problem will go away if/when I install.  I wanted to first prove to myself that I could get the DSL system to operate as a printer server for a Linux and a Windows system on my network.
Back to top
Profile PM 
catfish Offline





Group: Members
Posts: 16
Joined: Sep. 2003
Posted: July 14 2004,21:58 QUOTE

There maybe some other symlinks in /etc that you have to replace with "real" files (e.g., remove the symlink then copy its target). I can't check right now but I seem to recall that the groups file (and shadow?) also need to be "writeable". Can you try the "addgroup" command to see if it fails also?
Cheers,
Back to top
Profile PM 
doccpu Offline





Group: Members
Posts: 3
Joined: July 2004
Posted: July 17 2004,14:23 QUOTE

Thanks to great suggestions from the forum, the problem is solved.  Had to replace links to group and shadow files with real files, then adduser works.

Thanks
Back to top
Profile PM 
4 replies since July 14 2004,13:32 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Add New User

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code