Home > linux > Why is there user-ownership in Linux? Aren't group/other file permissions enough?

Why is there user-ownership in Linux? Aren't group/other file permissions enough?

October 8Hits:1
Advertisement

I think I rather understand how file permissions work in linux. However, I don't really understand why they are split into three levels and not into two: can anyone explain the rationale for why a single user can own a file? Isn't having group/other permissions enough? With your answer, I'd be happy if you reference to discussions I can read on this topic.

Answers

Surely this is sort of self evident. If I create a file on a multiuser machine, which I want kept private, then I want to be able to specify that in the permissions. This is especially important with user specific data such as private keys.

This is especially important if there are isn’t a specific group for each user (as there is today on, say, Debian, where a group userx is created when userx is created). Furthermore, it allows to give access to both a specific user, who may then give access to another group of which he is not necessarily a member without having to add himself to that group, something that can only be done by root.

Related Articles

  • Why is there user-ownership in Linux? Aren't group/other file permissions enough? October 8

    I think I rather understand how file permissions work in linux. However, I don't really understand why they are split into three levels and not into two: can anyone explain the rationale for why a single user can own a file? Isn't having group/other

  • file permissions and group ownership using sftpJanuary 14

    Is there a way to have all files created by a particular user under sftp to have a specific group and file permissions? The user in question, of course, will be a member of the group, but it is not his primary group. In other words, is there a way fo

  • How do I detect what is changing file ownership on Linux?August 12

    I have inherited a bunch of Linux (Ubuntu Precise) servers and am currently having problems with the ownership of a folder changing to "root" fairly often. We run puppet, which changes the ownership to the user it should be, but something else c

  • File permissions and ownership to isolate users on apacheAugust 6

    I need to set up apache2 to achieve the following Several different login accounts can access their own files and read / write / replace them at will. Each user can't even read the contents of the other users files, or preferably even see they files

  • Can Linux file permissions be fooled?May 31

    I came across this example today and I wondered how reliable Linux file permissions are for hiding information $ mkdir fooledYa $ mkdir fooledYa/ohReally $ chmod 0300 fooledYa/ $ cd fooledYa/ $ ls >>> ls: cannot open directory .: Permission denie

  • Linux: User vs group permissionsNovember 17

    I'm fairly new to Linux and testing around with it. I'm SSHing into the server, and I created a testuser while logged in as root ussing adduser. I noticed that it didn't create a home directory, so I created that as well using mkdir.. The directory i

  • Handling file permissions in Linux with ACLMay 20

    How can I get ACL for file permission to work in Linux? I don't care kernel version or distribution. I will do a clean install anyway. Is there a KERNEL/FS supported ACL? If I choose Linux, am I stuck with UGO approach to file permissions? Thanks. --

  • Fixing file permissions and user ownership on Unix serverFebruary 24

    I have just correct my file permissions using: http://serverfault.com/questions/35076/need-to-fix-file-permissions-in-a-users-home-directory Looking for the same commands and explanation to correct ownership of files and directories in the user direc

  • Apache and linux file permissionsApril 22

    I recently moved a Symfony 1.3.2 website (a PHP web framework), from a windows machine to Linux (Ubuntu 9.10). Ever since then, I have had all kinds of problems involving file permission (even though the app run without any of these problems on windo

  • Linux File Permissions & Access Control QueryMay 8

    Let's say I am user bob in group users. There's this file: -rw----r-- 1 root users 4 May 8 22:34 testfile First question: Why can't bob read the file as it's readable by others? Is it simply that if you are denied by group, then you are auto-blacklis

  • Is there a good graphical/pseudographical/web-based tool for managing Linux users and groups?July 10

    Is there a good graphical/pseudographical/web-based tool for managing Linux users and groups? To see them all at once, operate them (create, remove, associate (add/remove users to groups), modify) with couple of clicks? --------------Solutions-------

  • Remove Linux file permissions, in windowsJanuary 22

    I've set up a fileshare that I want my users to be able to read/write/delete to. The problem is that I'm able to list content and delete it, not read/write. Yes, this goes for several users. The permissions look like this: NTFS No inheritance from pa

  • getfacl command and Linux file permissions - getting 403 error when accessing WordpressMarch 5

    I'm configuring Wordpress for a friend, and I just screwed up the Wordpress directory permissions (I suspect) using setfacl. Webfaction doesn't allow sudo or allow me to change the directory group ownership using chown. Now it appears that something

  • a graphic utility in windows to change folder/file permissions like chmod in linuxApril 20

    i want to make a folder available for upload to users. i have to make this folder as 777 file permissions Is there any graphic based software to accomplish this task ? --------------Solutions------------- Windows does not use the Linux permissions sy

  • Cannot execute basic linux commands (ps, ls, ifconfig) - File not foundMay 4

    I am running Ubuntu Linux, and am having some major system issues (networking not working, etc), which I think could be based on this fundamental problem. When I try execute a variety of basic commands (including ps, ls, ifconfig, locate), I receive

  • What roles do DAC (file permissions), ACL and MAC (SELinux) play in Linux file security?July 17

    I need some clarification/confirmation/elaboration on the different roles DAC, ACL and MAC play in Linux file security. After some research from the documentation, this is my understanding of the stack: SELinux must allow you access to the file objec

  • Linux file permissions not being preservedJuly 10

    I am deploying some custom software as root (a necessity for this situation). I set the owner/group to user1:user1 and set all the files to 644 beforehand in shell, then copy and deploy with ant. However, when files get copied over from the deploymen

  • What's the Linux equivalent to Windows batch files?

    What's the Linux equivalent to Windows batch files?July 21

    I have a batch file which I use to create an .apk file on my Windows machine. Now I need to be able to create the .apk file in Ubuntu but I don't know how translate my .bat file to a script to be able to run it on Ubuntu. Below is the batch file whic

  • fatal error: linux/smp_lock.h: No such file or directoryAugust 28

    I'm trying to build some drivers for a TV tuner and I am getting this error when I build: make -s -C /lib/modules/3.2.0-23-generic/build SUBDIRS=/home/jtp/IT9135_SRC modules In file included from /home/jtp/IT9135_SRC/it9135-core.c:21:0: /home/jtp/IT9

  • How to stop a Linux LVM volume group?September 17

    I am currently dealing with a multiple disk failure on a Linux LVM Volume Group that is backed up by a RAID-5 md device. One disk has been taken out completely and another one is showing a limited number of corrupt sectors, due to what seems to have

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.785 s.