How To See Who Owns a File In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To see who owns a file in Linux, enter the following command in your terminal:
ls –l <filename> This will list the permissions on the file, as well as its owner and group. The output should look something like this:
–rw–rw–r— 1 username group 20 Jul 31 08:47 filename.txt
The first field indicates the file permissions, followed by the owner‘s username (username) and the group name (group) that has access to the file.