DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th June 2020
jonsec jonsec is offline
Fdisk Soldier
 
Join Date: Jul 2019
Posts: 71
Default [OpenBSD] Run firefox as another user

i want run firefox-esr as another user.
i use this command :
Code:
doas -u firefox -- firefox-esr
but i get this error:
Code:
no protocol specified
Error: cannot open display :0
also i use this script
https://gist.github.com/mrdomino/9d1...0ef045fbc769a4

but i get same error.


how i can run firefox-esr as another user in root?
Reply With Quote
  #2   (View Single Post)  
Old 25th June 2020
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

You shouldn't be running firefox in root ,or as root to start with. Maybe I am misunderstanding the question?
__________________
My best friends are parrots
Reply With Quote
  #3   (View Single Post)  
Old 25th June 2020
jonsec jonsec is offline
Fdisk Soldier
 
Join Date: Jul 2019
Posts: 71
Default

Quote:
Originally Posted by PapaParrot View Post
You shouldn't be running firefox in root ,or as root to start with. Maybe I am misunderstanding the question?
i can run firefox in root but i not want do this for security reason.
i want run firefox as another(like firefox) user by root user.

Code:
root# doas -u firefox -- firefox-esr
Reply With Quote
  #4   (View Single Post)  
Old 25th June 2020
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

I didn't try that
http://lists.dragonflybsd.org/piperm...st/312265.html
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase
Reply With Quote
  #5   (View Single Post)  
Old 25th June 2020
sabrina sabrina is offline
Port Guard
 
Join Date: Jun 2020
Posts: 15
Default

Quote:
Originally Posted by e1-531g View Post
Hello!
Quote:
Use vipw to create three new accounts I used UIDs 30000, 30001,
and 30002 and called them dfw1, dfw2, and dfw3. Set password to '*'
(no password allowed). /home/dfw1, /home/dfw2, /home/dfw3.
If no password allowed, then how do those users work? The system does not ask for password when you log in?
Reply With Quote
  #6   (View Single Post)  
Old 25th June 2020
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

Quote:
Originally Posted by sabrina View Post
Hello!

If no password allowed, then how do those users work? The system does not ask for password when you log in?
Authentication is based on OpenSSH keys.
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase
Reply With Quote
  #7   (View Single Post)  
Old 27th June 2020
junk's Avatar
junk junk is offline
Port Guard
 
Join Date: Jun 2018
Posts: 17
Default

man 5 doas.conf (setenv option)

Code:
permit setenv { DISPLAY=:0.0 } nopass root as firefox cmd firefox-esr
Not sure if it is a good idea.

Quote:
Originally Posted by jonsec View Post
i can run firefox in root but i not want do this for security reason.
i want run firefox as another(like firefox) user by root user.

Code:
root# doas -u firefox -- firefox-esr

Last edited by junk; 27th June 2020 at 07:19 PM.
Reply With Quote
  #8   (View Single Post)  
Old 27th June 2020
junk's Avatar
junk junk is offline
Port Guard
 
Join Date: Jun 2018
Posts: 17
Default

Nice. What about unveil?

Quote:
Originally Posted by e1-531g View Post
Reply With Quote
Reply

Tags
firefox-esr

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Store, Auth, VPN and Multi-user apps/software montie OpenBSD Packages and Ports 9 9th January 2015 09:51 PM
new openbsd user can't connect to adsl barti OpenBSD Installation and Upgrading 85 18th July 2012 06:32 PM
FreeBSD user going to try OpenBSD Trihexagonal OpenBSD Packages and Ports 5 27th May 2012 08:55 PM
New OpenBSD User codeFreak OpenBSD General 3 18th February 2011 02:43 AM
How to Run K3B with normal user openBSD 4.4 mfaridi OpenBSD General 6 12th November 2008 10:25 PM


All times are GMT. The time now is 10:28 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick