![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
I need, every time machine boots up, that "startx" and "x11vnc -forever -display :0" commands automatically starts by "rc.local file" but not with root privilege: with user "xxx" privilege ...how can I do this?
__________________
"Non ex regula ius sumatur, sed ex iure quod est regula fiat." |
|
|||
|
Until the user has authenticated, how can the system know which user account is to be used? Is it always the same?
|
|
||||
|
If you know what user account it needs to be run as, or have a special user for running it:
/etc/rc.local -> su username -c /path/program args You can also use su to use a specific login class with su's -c switch, e.g. su -c loginclass username -c /path/prog args every thing after username is passed to the shell, the man page is useful.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
|
Thanks ocicat and TerryP
![]() TerryP I've followed your post: now I can do what I would. Good evening!
__________________
"Non ex regula ius sumatur, sed ex iure quod est regula fiat." |
|
||||
|
your welcome
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mounting USB as a normal user | rex | FreeBSD General | 23 | 5th March 2012 12:52 PM |
| HOWTO: mounting an USB device as normal non-root user in OpenBSD | J65nko | Guides | 4 | 24th December 2008 12:43 AM |
| How to Run K3B with normal user openBSD 4.4 | mfaridi | OpenBSD General | 6 | 12th November 2008 09:25 PM |
| Wireshark not run in normal user | mfaridi | FreeBSD Ports and Packages | 2 | 7th November 2008 08:49 PM |
| Mounting samba share as normal user | rex | FreeBSD General | 4 | 27th October 2008 04:17 PM |