Author Topic: New Users - Root/ Non-root Login  (Read 3898 times)

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
New Users - Root/ Non-root Login
« on: February 10, 2006, 12:45:40 pm »
hello there,

to most of you this must be a stupid question:

how do you log in as a non-root user??

i spent two hours on browsing the net but haven't found much, so it's either totally simple and indeed a stupid question - or it just isn't possible and everyone knows this and has accepted it. so, which of these is true??

many thanks in advance )
seb

ps: i've created an additional user in /etc/passwd and set up the shadow-file, so i CAN log in, but not into X
« Last Edit: February 10, 2006, 12:46:21 pm by Seb »

km2783

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • http://
New Users - Root/ Non-root Login
« Reply #1 on: February 10, 2006, 04:14:20 pm »
I made a non-root account, logged in as it, and then could not even reboot the system, let alone change users.  When I started X, it was garbled and strange looking.  I hunted around here and read that there was no real support for non-root users  

So I just reflashed and did not make a non-root account this time around
SL-C3100 - pdaXii3 5.4.9

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
New Users - Root/ Non-root Login
« Reply #2 on: February 10, 2006, 04:40:36 pm »
sds wrote in thread

https://www.oesf.org/forums/index.php?showt...=non-root&st=75

the following:

>My take on testing the RC11:
>
>I am unable to rotate the screen from a (newly created) user account -- I do not like logging-in as >root -- this used to work in RC10?
>Also, I am not sure where should I change the permissions/use sudo so that the screen would
>blanken in a user account when closing the lid?

so I guess there must be a way to log into X as non-root. on the other hand I also find posts which give me the impression there is no way to log in as non-root, BUT:

i mean, this is linux, there MUST be a way, so, which is the solution?

setting suid bits? in that case, for which files??
setting up a display manager?
other solutions?

if anyone has solved this - please give me a hint in which direction to investigate further, ideally something like "just read this: http://www. ..."  

thanks again  
seb

ratki

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://
New Users - Root/ Non-root Login
« Reply #3 on: February 10, 2006, 05:04:03 pm »

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
New Users - Root/ Non-root Login
« Reply #4 on: February 10, 2006, 05:11:51 pm »
thanks for your quick response, but what exactly did you do after flashing with pdaxrom?

this is what i did:
flashing
-after playing a little bit with root "exit"ing from x
-under console adding new user "zaurus" in /etc/passwd, setting up /etc/shadow, changing password by "passwd zaurus" as root
-log out as root by "exit"
-log in as "zaurus"
-"startx" as zaurus
-and funny tings happen:
"using fallback suid method"
"xauth: timeout in locking authority file /home/zaurus/.xauthority" (what is this????)
and when it finally starts it looks strange and nothing really works
 

i mean - what you wrote in that thread looks to me like solving minor problems (rotating, audio etc.), i don't even get to start it reasonibly..
« Last Edit: February 10, 2006, 05:20:26 pm by Seb »

ratki

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://
New Users - Root/ Non-root Login
« Reply #5 on: February 10, 2006, 06:05:54 pm »
Try before startx:
cd
ln -s /usr/bin/mbsession .xinitrc

You shoud get the same windowmanager as root has.

Tamas

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
New Users - Root/ Non-root Login
« Reply #6 on: February 10, 2006, 06:21:59 pm »
THANKS!!!      

seems to work so far!
the only thing which keeps me interested now is the "using fallback suid method"-thing when working with the console, what exactly does that mean?

thanks again!