Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 604  / 1 Year ago, sat, november 19, 2022, 7:03:10

I am pretty much confused about the creation of users!


Because if anyone wants to make a new user he will require my (real id password) when setting their own password using (sudo passwd username)!

But my question is why should I tell them my password? On the other hand, anyone can get access to administration just by adding a simple (sudo group) as its secondary group! So if anyone gets administration access so easily how security is ensured?


Moreover, what is the benefit of changing file permissions because you can do everything in root mode! And all admin users can edit my files which I have denied permission to.


As a beginner, these few questions are puzzling me and I couldn't connect how those Linux concepts are helpful!


More From » permissions

 Answers
0

Linux, (and Unix in general), was originally a server operating system. Servers would have one or multiple administrators and several regular users, usually hundreds+, who can connect remotely via terminals like this one:


Only administrators (root user or a member of the wheel group on BSD Unices) can add new users. Each user, regular or administrator, can change their own password via the passwd command and they only need to know their previous password for this. Administrators can also change other users' passwords.


On a desktop system, it would be a bad idea to run every app as root, so usually another user is created. And in order to carry out system administration tasks, this user is given access to sudo to gain administrator privileges. So yes, only administrators can create new users.



a new user he will require my (real id password) when setting their own password using (sudo passwd username)!



No, initially you would set some password for them, once they log in, they can just run passwd and change it without knowing the administrator's password.



On the other hand any one can get access to administration just by adding a simple (sudo group)



This isn't meant to be the case. You'd want to have at least one user who has sudo access, but other regular users shouldn't have it.



what is the benefit of changing file permissions because you can do everything in root mode!



As above, regular users aren't supposed to have sudo privileges and then won't be able to access each others' files.


Hope this helps. Here's a more in-depth introduction. And: more information about commonly used system groups


[#96] Monday, November 21, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mugustered

Total Points: 193
Total Questions: 123
Total Answers: 108

Location: Bermuda
Member since Wed, Mar 22, 2023
1 Year ago
mugustered questions
Sun, May 29, 22, 11:53, 2 Years ago
Fri, Dec 23, 22, 15:02, 1 Year ago
Sun, Mar 5, 23, 02:51, 1 Year ago
;