LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-14-2024, 06:56 AM   #1
Gorfboggler
LQ Newbie
 
Registered: Apr 2024
Posts: 2

Rep: Reputation: 0
Sharing folder between root and standard user


Firstly let me state that I AM a complete newbie with Linux and still rely mostly on the gui to get anything done.

I have a two part question.
First,is it more secure to keep files you use a lot(password managers, personal files) on the administrator account or a standard user account.I have read it is best not to logon with the administrator account.

Second, if it is better to keep them on the administrator account, how can the standard user access one particular folder in the administrator account?
I've been bouncing around reading articles about sharing folders but have not seen anything that answers this question.
 
Old 04-14-2024, 07:37 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,312
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
Welcome.

Quote:
Originally Posted by Gorfboggler View Post
First,is it more secure to keep files you use a lot(password managers, personal files) on the administrator account or a standard user account.I have read it is best not to logon with the administrator account.
It is much better to avoid using the administrator account for daily tasks. Use it only for system administration and log out from it when the maintenance is done.

Quote:
Originally Posted by Gorfboggler View Post
Second, if it is better to keep them on the administrator account, how can the standard user access one particular folder in the administrator account?
I've been bouncing around reading articles about sharing folders but have not seen anything that answers this question.
Again, it is better to only use the administration account for system maintenance.

In order to share a folder between two or more accounts, you'd use groups. If it is a matter of read only-access, then that is simple: set a group to read access in the graphical file manager and have the accounts be members of that group. However, when you want to share write access between accounts, sharing write access can be a little more complicated on EXT file systems. EXT4 is the default for most distros these days, but there are other file systems which you could choose, some with better characteristics in regard to sharing, but that is a much more advanced setup.
 
Old 04-14-2024, 12:33 PM   #3
Gorfboggler
LQ Newbie
 
Registered: Apr 2024
Posts: 2

Original Poster
Rep: Reputation: 0
Just trying to make sure

My Thanks for the info. So, I should install any new programs I would normally be using on a daily basis on the standard account, correct? Pretty much everything and like you say, only use the administrator for maintainance?
I suppose I should uninstall what I have installed on the admin account and reinstall them from the standard account?
Just trying to make sure here.
nd thanks again.This is going to be a long trek for me..
 
Old 04-14-2024, 12:40 PM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,312
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
Switch to the administrative account to install programs, too, and then switch back to your regular account once the installation is complete. Same for updates.

Installation from the repository should take only a few seconds. Programs from outside the repository should be avoided as much as possible. Your distro will have a nice, graphical front end for package management. There is a common one called synaptic but there will be one specific to your distro, and you can speed up the installation by pointing the package manager at topologically close nodes.

By the way, which distro is this for, including version?
 
Old 04-14-2024, 04:54 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,714

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
What distribution and version are you running?

Quote:
I suppose I should uninstall what I have installed on the admin account and reinstall them from the standard account?
No. Just for information have you installed any program not in the official repository?

Last edited by michaelk; 04-14-2024 at 05:04 PM.
 
Old 04-16-2024, 04:18 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,662
Blog Entries: 4

Rep: Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942
Your "password repository" should of course be an encrypted file, and so it's fine to keep it on "your account." In general, I recommend that you keep everything that "you" use on "your" account.

And – "your" account should be a non-administrator account. (In Linux parlance, "not a member of the wheel group.")

Only one account should be "an administrator." (Don't name it "wheel" or "administrator" or "admin.") This is the account that you use for system administration, and no other purpose. (Optionally, change the permissions on the user's home directory to exclude access from "others." "-rwxrwx---" In case you want to store information there that is "nobody else's business.")

When you install Linux, it will create one "administrator" account. Immediately use this account to create other, non-administrator, account(s) for your daily use.

The distinction of this particular user is not that it is "more or less secure," but "what it (alone!) can do." Only this user can "walk into a phone booth" and then "fly(!) out."

Incidentally: this principle of least privilege applies equally to every(!) operating system: Windows, Linux, OS/X (MacOS). Because: "computers are terrible at knowing when to say 'yes,' but terrific at saying 'no!'" Every OS provides its own (different ...) way of accomplishing this critically important distinction.

Last edited by sundialsvcs; 04-16-2024 at 04:24 PM.
 
  


Reply



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] Zentyal 4.1 Standard user with restrictions similar to MS server 2008/2 standard user atomiccomp Linux - Server 3 08-14-2015 06:11 AM
Printing of application out in standard and non standard paper size gkedar614 Linux - Newbie 2 08-23-2013 03:40 AM
[SOLVED] how to make a link (user)folder that links to a root folder morganfreeman Linux - Server 6 01-14-2013 05:56 AM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
Cookie Sharing Between CGI generated HTML pages and standard HTML pages rkwhited Linux - Newbie 5 08-15-2004 07:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:59 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