[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: adding users
> -----Original Message-----
> From: firstname.lastname@example.org">mailto:email@example.com]
> On Behalf Of Friedrich Lobenstock
> Sent: dinsdag 25 november 2003 12:14
> >>I would like to be able to add more users (other than root and
> nobody) to
> >>an etrax 100 lx board.
> >>From looking at the etrax software distribution, I think that
> >>Axis has set
> >>up the passwd file offline and then incorporated it into the software.
> > You can do the same, manually add a user to the the passwd file, then
> > create a user + password on your desktop, copy the password from your
> > desktop's /etc/shadow file into the Etrax passwd file.
> > Rebuild your flash images, and flash them into the board.
> I tried compiling the current busybox 1.0.0-pre3 which has all the
> needed commands like useradd and so on but I did not succeed.
Editing the passwd file on the Etrax itself will not work, as it is
part of the (readonly) cramfs image.
I don't think it's necessary to be able to add users on the fly, (at least
I certainly don't need it).
So I suggest manipulating the passwd file in your development tree,
recreate the cramfs image, and flash it.
If you really want to be able to change your /etc/passwd on a running
Etrax, you could probably create a symlink /etc/passwd (in the cramfs image)
to /mnt/flash/passwd, and make sure /mnt/flash/passwd exists (you probably
can't login without it)
I think you can create the symlink by replacing the current passwd entry in