LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2024, 07:01 PM   #1
JASlinux
Member
 
Registered: Oct 2020
Posts: 380

Rep: Reputation: Disabled
Question Is running a standalone browser in Ubuntu still limited user?


(XFCE environment)

Code:
xubuntu@xubuntu:/$ ps aux | grep -i pale
xubuntu   2417 13.4  3.9 2102748 303000 ?      Sl   23:20   1:41 ./palemoon-bin
xubuntu   2533  0.0  0.0  21712   964 pts/6    S+   23:32   0:00 grep --color=auto -i pale
xubuntu@xubuntu:/$
Is xubuntu Palemoon's owner or just the user who ran the process? I can save a webpage to any media location & am wondering if standalone default is the same as running as root (ie, no security benefit).

My goal is to run a standalone browser as a limited user in a live session, & the only way I am sure of that is by copying the app to ram.
 
Old 04-06-2024, 08:13 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,328
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
What do you mean by "limited"?

As far as I know, you get no additional browser capability by running a browser as root, but you open your OS to increased vulnerability.
 
Old 04-06-2024, 09:35 PM   #3
JASlinux
Member
 
Registered: Oct 2020
Posts: 380

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
What do you mean by "limited"?
"Limited" just means a limited user, standard in Windows & default in an Ubuntu installation. If your current user does not have superuser privileges (without sudo), you are running as limited.

I am not trying to run as root but understand the current state. Is a standalone browser running as root or not?

I am running, as user xubuntu, a standalone browser that is not in the system but an external partition.

How can I verify it is running as a limited user?
 
Old 04-07-2024, 02:12 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
Quote:
Is a standalone browser running as root or not?
What user opened it?
Quote:
How can I verify it is running as a limited user?
Code:
whoami
ps a -o pid,tty,etime,cmd,user
ps -e -o pid,tty,etime,cmd,user
 
Old 04-07-2024, 06:41 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
It’s running as the user that launched it. Why would you think otherwise?
 
Old 04-07-2024, 07:03 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
There’s only one way to get executables to *not* run as the user that launched them. I assume this wasn’t done with palemoon.

https://en.m.wikipedia.org/wiki/Setuid

You, on the other hand, don’t have to assume. You can check with “ls -l”.

Last edited by dugan; 04-07-2024 at 07:14 PM.
 
Old 04-08-2024, 07:06 AM   #7
JASlinux
Member
 
Registered: Oct 2020
Posts: 380

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
It’s running as the user that launched it. Why would you think otherwise?
unrestricted media access

How can a limited user app access any partition or folder?

I am in a non-Ubuntu distro running this browser as a limited user & when I try to save this webpage out of its restricted area it is automatically deleted.

Click image for larger version

Name:	tas.png
Views:	14
Size:	7.5 KB
ID:	42677
 
Old 04-08-2024, 07:34 AM   #8
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,141

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
*Nix systems are designed to keep you confined to your home directory without special privileges. This is a good thing, not a bad one. You are free to create directories most anywhere and use them as you please. The permissions system is quite granular. Ultimately though it's best to keep things in /home/"$USER" wherever possible.

With the
Code:
xubuntu
user in your op post I'm assuming you are loading a live environment. That alone is problematic because you won't be able to store anything anyway. It will disappear on reboot.

Last edited by jmgibson1981; 04-08-2024 at 07:39 AM.
 
Old 04-09-2024, 01:50 AM   #9
JASlinux
Member
 
Registered: Oct 2020
Posts: 380

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jmgibson1981 View Post
*Nix systems are designed to keep you confined to your home directory without special privileges. This is a good thing, not a bad one. You are free to create directories most anywhere and use them as you please. The permissions system is quite granular. Ultimately though it's best to keep things in /home/"$USER" wherever possible.
Not sure what *Nix is but the idea of using directories anywhere despite limited user status is what I have to get used to in Ubuntu, though admittedly that's the same as Windows.

I just started getting used to restricted access elsewhere.

Quote:
With the
Code:
xubuntu
user in your op post I'm assuming you are loading a live environment. That alone is problematic because you won't be able to store anything anyway. It will disappear on reboot.
Yes, and there is no problem, completely intentional for security. It just eats a lot of setup time each boot.
 
Old 04-09-2024, 02:16 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Quote:
Originally Posted by JASlinux View Post
unrestricted media access

How can a limited user app access any partition or folder?

I am in a non-Ubuntu distro running this browser as a limited user & when I try to save this webpage out of its restricted area it is automatically deleted.

Attachment 42677
Your wording is confusing. There is no limited user, there is no unrestricted media access and in general it is working in a different way.
We have let's say regular users and root, nothing else. We have groups. Every file/dir has its own permissions to rule who (which user/group) is allowed to read/write it.
Also there is a restricted shell, which means a limited environment. We have also containers to encapsulate things and/or hide things.
Copying an app into RAM does not mean any kind of restriction or limitation.
Running a live section means a different approach again.

But first of all would be nice to know exactly what do you want to solve?
 
Old 04-09-2024, 02:24 AM   #11
JASlinux
Member
 
Registered: Oct 2020
Posts: 380

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by pan64 View Post
But first of all would be nice to know exactly what do you want to solve?
I want to run a browser out of the system, standalone, without the privileges of root, or to at least understand why a browser running as a regular user without admin privileges seems to run unrestricted. What is the difference between

Code:
sudo firefox
and

Code:
firefox
?
 
Old 04-09-2024, 02:27 AM   #12
JASlinux
Member
 
Registered: Oct 2020
Posts: 380

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Copying an app into RAM does not mean any kind of restriction or limitation.
Running all FAT32 & NTFS file systems, I need internal system directories to change permissions.

Quote:
Running a live section means a different approach again.
always my case
 
Old 04-09-2024, 02:56 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Quote:
Originally Posted by JASlinux View Post
I want to run a browser out of the system, standalone, without the privileges of root, or to at least understand why a browser running as a regular user without admin privileges seems to run unrestricted. What is the difference between

Code:
sudo firefox
= and =
firefox
?
see man page, sudo means change user (to root) and run app (firefox)


Quote:
Originally Posted by JASlinux View Post
I want to run a browser out of the system,

?
that is meaningless. How do you want to run anything without an OS? What do you mean by that?
Copying/relocate a file (executable) to anywhere does not solve or modify anything. It has no any impact on the execution.
 
Old 04-10-2024, 02:33 AM   #14
JASlinux
Member
 
Registered: Oct 2020
Posts: 380

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post

How do you want to run anything without an OS? What do you mean by that?
A browser, for example, will be builtin, user installed, an executable container format (snap, AppImage, FlatPak, etc), or standalone portable.

You can put a standalone portable in a system folder, but they can also be most other locations.

When you put a browser out of the system, it will commonly not run with restricted permissions, logically, when it will run as root.

This is not rule but common practice.

Try it!

I am new to running browsers in Ubuntu, so I need to learn how restricted they are running as a limited user.
 
Old 04-11-2024, 12:58 PM   #15
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by jmgibson1981 View Post
With the "xubuntu" user in your op post I'm assuming you are loading a live environment.
I'm guessing that that this is the case, and the explanation for what you're seeing is that the livecd user account not a "limited user".

Last edited by dugan; 04-12-2024 at 01:36 AM.
 
  


Reply

Tags
browsers, limited, security, standalone, ubuntu



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to run a standalone browser in a live session? JASlinux Linux - Software 9 02-28-2024 09:10 AM
search for "standalone" working browser (firefox) surfin_eddie Linux - Software 5 04-29-2014 06:14 AM
Running code on boot as a limited user... itnaa Linux - Software 6 08-25-2007 04:52 PM
Finding Module Dependencies...(Still loading...still loading..still loading..HANG!!!) Aeudian Linux - General 3 08-11-2003 03:31 PM
Finding Module Dependencies.....(still loading....Still loading....still loading) Aeudian Linux - Newbie 1 07-28-2003 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration