Author Topic: Normal Vs. Root User  (Read 11902 times)

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Normal Vs. Root User
« Reply #15 on: March 06, 2006, 01:25:47 pm »
I have been running a non-root user with the hints in this thread, except..
When I run mplayer it doesn't display the image I can see from the commandline it's running but no image on the screen.

What do I need to change to allow mplayer to display on the root window?

TIA,

Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Normal Vs. Root User
« Reply #16 on: March 06, 2006, 10:23:04 pm »
I wonder if Sashz had a chance to add these fixes into Beta2.
Sashz?
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Normal Vs. Root User
« Reply #17 on: March 06, 2006, 10:42:27 pm »
Quote
I wonder if Sashz had a chance to add these fixes into Beta2.
Sashz?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=117285\"][{POST_SNAPBACK}][/a][/div]
No, I'm running Beta 2 and had to chmod all of these files to run as non-root.
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

ratki

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://
Normal Vs. Root User
« Reply #18 on: March 26, 2006, 09:18:26 am »
Quote
If you want to have correct usage of CF cards you (even me!!!) need the "cardctl" compiled accordingly. (trusted mode?) Now I need an extra window with "su" for this. (Yes, "su" works at me.)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111596\"][{POST_SNAPBACK}][/a][/div]
I've installed the program sudo.

I've moved the original "cardctl" to "cardctl.orig"
I've created a new "cardctl" instead:
Code: [Select]
#!/bin/bash
/usr/bin/sudo /sbin/cardctl.orig $*
I've added the followings to the "/etc/suduers:
Code: [Select]
ratki ALL=NOPASSWD: /sbin/cardctl.origCheck if the permissions of /etc/sudoers are:
Code: [Select]
-r--r-----    1 root     root          775 Mar 23 20:54 /etc/sudoersWith this I can use the CF/SD icon, too.

Best wishes,

Tamás

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Normal Vs. Root User
« Reply #19 on: March 27, 2006, 12:27:06 am »
Quote
Quote
If you want to have correct usage of CF cards you (even me!!!) need the "cardctl" compiled accordingly. (trusted mode?) Now I need an extra window with "su" for this. (Yes, "su" works at me.)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111596\"][{POST_SNAPBACK}][/a][/div]
I've installed the program sudo.

I've moved the original "cardctl" to "cardctl.orig"
I've created a new "cardctl" instead:
Code: [Select]
#!/bin/bash
/usr/bin/sudo /sbin/cardctl.orig $*
I've added the followings to the "/etc/suduers:
Code: [Select]
ratki ALL=NOPASSWD: /sbin/cardctl.origCheck if the permissions of /etc/sudoers are:
Code: [Select]
-r--r-----    1 root     root          775 Mar 23 20:54 /etc/sudoersWith this I can use the CF/SD icon, too.

Best wishes,

Tamás
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120311\"][{POST_SNAPBACK}][/a][/div]

Thanks or the tips! You have any luck with mplayer as non-root?
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

Ragnorok

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
    • http://
Normal Vs. Root User
« Reply #20 on: April 15, 2006, 08:32:09 pm »
- I just flashed beta2 ... I've been following pdaXrom very closely, and it looked a lot of the issues from RC10 have been resolved.  Seems they have!  It's been very stable and very nice for the whole hour or so I've been toying with it.
- But I can't get it load the desktop as a non-root user.  I get three undecorated xterm-like windows and a clock in the upper right corner.  No task bar, no pretty screen, nothing.  Plain X-style crosshatch background.  If I startx as root, it works fine as frog hair.
- I personally really don't like the idea of hitting the 'net as root, so I'd really like to get this working.  Since pdaXrom is a "bona-fide" Linux it should be doable, and indeed it seems jerrybme has it right, but so far I've not found what to do about it.  Is there a "howto" for getting pdaXrom to run "correctly" non-root?
- I'll keep a-lookin'.  Thanks for your time...
« Last Edit: April 15, 2006, 08:32:32 pm by Ragnorok »
| I shed a tear for the passing of Hiroshi; he served me well
| Zaurus zealot since Nov 2002, PDA user since Oct 1991
| Replaced Z with UMID BZ February 2010

ratki

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://
Normal Vs. Root User
« Reply #21 on: April 17, 2006, 04:21:22 pm »
Hi,

I haven't tried the Beta2, but probably you should see:
https://www.oesf.org/forums/index.php?showtopic=17651&hl=#
(Post #6)

BTW I didn't used mplayer on Zaurus yet. Sorry not to answe befote.

Tamás

Xromer

  • Full Member
  • ***
  • Posts: 178
    • View Profile
    • http://
Normal Vs. Root User
« Reply #22 on: April 20, 2006, 06:43:55 am »
UHM, i simply use ssh to have root shell. I made a dialog script to manage all the ROOT needed stuff.
I think using the Zauri as a normal user protects you from any accidental ROM files deletions and corruption, and on the internet it corrects as the normal Desktop use from foreigner attacks.
As i use it often with my GPRS card it' s a good thing.
I' m in the opinion that if you have Linux, it 's always possible to use it as it should be in embedded systems too.
That' s the difference from the Windows stuff.  
BYEZ!
[span style=\'font-size:10pt;line-height:100%\']I don't know how, but i' ll do!!!
This is how i like to live! :)[/span]

Ipaq hx4700

sds

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Normal Vs. Root User
« Reply #23 on: April 20, 2006, 02:07:13 pm »
Sashz was very kind to add my post-install hacks (permissions on light, hinge etc. + /etc/sudoers) to the standard install of 1.1.0 Beta3. Suspend should also work OK, both from the menu and from the hardware switch (after setting the system to the hardware clock as I explained elsewhere).

Also, the new "useradd" script (instead of "adduser") correctly sets up a new normal user account.

In my short (<2 hrs) testing I did not notice anything broken, but if there is something, please let us know.
C3100 pdaXrom