OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: blakeyez on October 12, 2004, 11:02:35 pm

Title: su?
Post by: blakeyez on October 12, 2004, 11:02:35 pm
Hi all

I'm just playing with setting up a normal user on rc5 (I just HATE running everything as root... too sketchy).  However, I cannot get 'su' to work as my normal user:

Code: [Select]
su - root
Password: [typed in pw]
su: cannot set groups: Operation not permitted

Anyone know what it's actually trying to access/change here?  busybox is suid root, so it should be able to do almost anything...

I am able to go from root to a normal user, though (as root, run 'su blakeyez' and it goes just fine, no warnings).

Dave
Title: su?
Post by: blakeyez on October 13, 2004, 01:20:23 am
Well, I haven't really "solved" the problem, but I have worked around it.  I have built sudo, and packaged it up for anyone else who'd like to use it.  Presently it needs you to add your normal user with the NOPASSWD in /etc/sudoers , as for some reason shadow passwords aren't working right and I don't feel like messing with it right now.  Not like my Z needs to be super secure

So, if anyone would like the package... Here (http://pulsar.dagsolutions.ca/sudo_1.6.8p1_armv5tel.ipk) it is.

Dave
Title: su?
Post by: Bundabrg on October 13, 2004, 06:10:47 am
Oh, I hit that problem. Its because its busybox su (hardlinked).

Edit /etc/busybox.conf, copy the line from 'ping' and changing ping to su.
Easy!

However, you will hit other problems as a normal user (I have), especially with settings. Nothing that sudo wrappers can't fix of course ;-). I seem to remember there was one main showstopper of running as a user, but I can't remember what it was.

 - Bundabrg
Title: su?
Post by: blakeyez on October 13, 2004, 09:59:16 am
Beauty, that fixed it, thanks!

I haven't really found many other problems yet.  I will of course need to setup some sudo goodness for all the settings apps, but I dont't really change those very often anyway.

Dave
Title: su?
Post by: Laze on October 13, 2004, 11:37:02 am
We are trying to stop being so rooted so hopefully in future version it should be even easier to use the pdaXrom ;-)
Title: su?
Post by: kingmob on October 15, 2004, 08:10:32 am
I tried to get sound working for non-root users by creating an audio group and changing the settings in /etc/devfsd.conf to give the /dev/sound devices "root:audio 660" permissions.

However my normal user still had no access to the devices, as if the extra group settings never get picked up.

I had to set the permissions to 666 to get sound in the end

Tim
Title: su?
Post by: blakeyez on October 15, 2004, 11:05:38 am
You DID log out then back in again, right?  

It would be really nice if the 'id' and 'whoami' utilities were installed on pdaXrom by default.  Not having them makes experimenting with normal user usage interesting to say the least !

Dave
Title: su?
Post by: kingmob on October 15, 2004, 05:47:40 pm
Quote
You DID log out then back in again, right?
Oh yes