[SOLVED] New debian install - what permissions to give the user
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by TxLonghorn
You can create standard users who do not have sudo privileges, and you can create administrative users who do have sudo rights.
I'll be wanting a standard user. Presumably a standard user will have ownership of $HOME?
Where can I find out what the default sudo privilages are? That way I can decide what further ownerships/permissions I need to assign to the user for convenient use of the OS.
Quote:
Do you want to automount sda6 and sda7 everytime you boot, or do you just want to mount them whenever you need them?
I'll just want to mount them whenever I need them.
The first user created during installation is always an administrative user with sudo rights. A new user created later is a standard user, by default, unless you intentionally make that user an administrative user.
Quote:
Originally Posted by Higgsboson
Presumably a standard user will have ownership of $HOME?
Of course, every user is the owner of their own user directory ($HOME).
Quote:
Originally Posted by Higgsboson
Where can I find out what the default sudo privilages are?
I can't think of anything offhand that you can't do with "sudo". "sudo" allows you to do anything root can do.
"default sudo privileges" is like saying "default root privileges"
If you are talking about identifying administrative and standard users, run the command:
Code:
id user
That will list the groups that user has. If sudo is listed, the user has sudo rights.
The first user created during installation is always an administrative user with sudo rights.
Sudo doesn't work that way in Debian. Sudo isn't even installed by default. Each user has to be added to sudo, none have that ability by default. Sudo doesn't necessarily give you every ability root has, it can be granted by individual rights. Different distros approach sudo differently, and Debian's is very conservative, very different from Ubuntu, and most other distros. I admit that the most common way for Debian users to grant sudo power is with ALL=(ALL:ALL) ALL, just like root, but it's not required, nor advised.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by TxLonghorn
If you want a folder on sda6 to be accessable to "user" right-click on that folder > Open in terminal and enter:
Code:
sudo chown -R user:user .
Don't forget the period . at the end of the command.
Thank you, this technique is very useful to know.
One last point though: for all directories owned solely by root, can I use the GUI to undertake rwx actions as root? This is not normally possible because I've logged in as user.
Of course, I can open a terminal at anytime, log in as root, and then undertake rwx actions via the command line. However, is it possible to do the same rwx actions as root via the GUI?
Thank you, this technique is very useful to know.
One last point though: for all directories owned solely by root, can I use the GUI to undertake rwx actions as root? This is not normally possible because I've logged in as user.
Of course, I can open a terminal at anytime, log in as root, and then undertake rwx actions via the command line. However, is it possible to do the same rwx actions as root via the GUI?
Yes, you can. The command you use depends on your desktop environment. I use KDE, so call programs with kdesudo e.g.
Code:
kdesudo kate
brings up my text editor as root after asking me for the password.
Of course, I can open a terminal at anytime, log in as root, and then undertake rwx actions via the command line. However, is it possible to do the same rwx actions as root via the GUI?
Yes. If you right-click on a folder, you could see an option listed "Open As Root" or "Open As Administrator". That depends on which file manager you are using.
Or you can open a root file manager (GUI) from the terminal. What file manager are you using?
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Sorry for the late reply everyone. My 6 year old ide hard drive finally died on me. Thankfully I had moved most of the home files to a newer sata hard drive.
I'll be getting hold of a ssd now to return things back to normal.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.