Author Topic: su?  (Read 2335 times)

blakeyez

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
su?
« 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

blakeyez

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
su?
« Reply #1 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 it is.

Dave

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
su?
« Reply #2 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
[img]http://www.worldguard.com.au/brendan-ambi.png\" border=\"0\" class=\"linked-sig-image\" /]

blakeyez

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
su?
« Reply #3 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

Laze

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • http://www.pdaXrom.org
su?
« Reply #4 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 ;-)
C760 running pdaXrom lastest ;-)
SL5500 Running Cacko Qtopia
512 MB SD Card, 128 MB CF Card, Prism2 CF Wlan.

Always visit http://www.pdaXrom.org for latest news.

kingmob

  • Newbie
  • *
  • Posts: 16
    • View Profile
su?
« Reply #5 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
« Last Edit: October 15, 2004, 08:11:24 am by kingmob »

blakeyez

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
su?
« Reply #6 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

kingmob

  • Newbie
  • *
  • Posts: 16
    • View Profile
su?
« Reply #7 on: October 15, 2004, 05:47:40 pm »
Quote
You DID log out then back in again, right?
Oh yes