2006-02-07 17:40:23 Adding multiple user accounts
Jason Holden (UNITED STATES)
Message: 5445 I built a kernel with passwd, adduser, addgroup, deluser, and delgroup. I am doing this because I would like to add a non-root user and password protect both the user account and the root account.
When I run passwd logged in as root, and change the password, I don't see a change in /etc/passwd
I can add a user and switch to that new user if I do the following, but when I try and switch users again I run into difficulties:
root> chmod 775 /bin/busybox
root> adduser user1
Enter new Unix Password:
Re-Enter new Unix Password:
root> adduser user2
Enter new Unix Password:
Re-Enter new Unix Password:
root> su user1
user1> su user2
su: This applet requires root priviledges!
user1> su root
su: This applet requires root priviledges!
Once I switch users once, I can't seem to switch users again. The /etc/passwd is updated to reflect the fact that I added two new users. I have tried doing a chmod 777 /bin/busybox and that doesn't help. I'm guessing that I am running into busybox peculiarities. Has anyone else had success turning the blackfin into a multi-user machine?
This is for the BF533-STAMP
-Jason
QuoteReplyEditDelete
2006-02-09 01:33:47 RE: Adding multiple user accounts
Robin Getz (UNITED STATES)
Message: 5472 Jason:
Check out:
http://docs.blackfin.uclinux.org/doku.php?id=uclinux_features#user_group_management
and let me know if this helps.
-Robin
QuoteReplyEditDelete
2009-01-04 20:48:34 RE: Adding multiple user accounts
uni chen (CHINA)
Message: 67339
hi Robin,
I opened the URL, but I got such message:
"You've followed a link to a topic that doesn't exist yet. If permissions allow, you may create it by using the Create this page button."
Would you please send me the latest document's URL?
Thanks a lot!
QuoteReplyEditDelete
2009-01-04 20:57:39 RE: Adding multiple user accounts
Robin Getz (UNITED STATES)
Message: 67340
Uni:
The search in the wiki works pretty well.
http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:features#user_group_management
QuoteReplyEditDelete
2009-01-04 22:23:47 RE: Adding multiple user accounts
uni chen (CHINA)
Message: 67342
Thanks a lot, Robin.
I have solved this problem.
But when I use "passwd root" to change root's password and then use "su", input the same password, there is always such message: "su: su: incorrect password".
Would you please tell me how to solve this problem?
Of course, I will read the document to see if there is any answer for this problem.
QuoteReplyEditDelete
2009-01-04 23:57:03 RE: Adding multiple user accounts
Robin Getz (UNITED STATES)
Message: 67345
Uni:
The root password is 'uClinux'. If you want to change it - the easiest thing to do is update the /etc/passwd file.
-Robin
QuoteReplyEditDelete
2009-01-05 21:04:23 RE: Adding multiple user accounts
uni chen (CHINA)
Message: 67400
Thanks a lot, Robin.
I tried "uClinux" after updating the whole rootfs, but it still didn't work...
And then I use:
perl -e 'print crypt("uClinux", "zA"),"\n"'
command on PC, the result is:
zAEslbXb82YB6
I put this string into /etc/passwd (no shadow in my uClinux) :
root:zAEslbXb82YB6:0:0:root:/root:/bin/sh
But I still got such error message:
"su: su: incorrect password"
Where is the problem?
QuoteReplyEditDelete
2009-01-05 21:58:18 RE: Adding multiple user accounts
Mike Frysinger (UNITED STATES)
Message: 67404
`su -` works fine for me. use `passwd` on the board to make sure the password is set correctly.
QuoteReplyEditDelete
2009-01-06 01:53:44 RE: Adding multiple user accounts
uni chen (CHINA)
Message: 67423
I'm 100% sure the password is correct.
I re-compiled the whole rootfs(add and remove some components), and found an intersting thing:
I can login into uClinux as root successfully(ssh xxx -l root),
but when I use other user name to login into system and then "su", the system will always report "su: su: incorrect password".
QuoteReplyEditDelete
2009-01-06 01:56:33 RE: Adding multiple user accounts
Mike Frysinger (UNITED STATES)
Message: 67425
then you should trace the busybox su.c code to make sure the myraid of options that are available are not resulting in an early fail due to misconfiguration on your board