Tagged Questions
2
votes
1answer
47 views
how to keep file owner same for newly created files
This question is regarding samba file access.
I have created a folder A, and under folder A created two folders B and C. And also created three users A, B and C.
User A has access to all three ...
2
votes
1answer
38 views
Unable to preserve ownership in a copy but able with a move?
I have noticed that I am unable to preserve ownership if I rsync -o files. However, I am when I move them. This is all without admin privileges. What is the rationale of this? Several threads e.g. ...
3
votes
2answers
133 views
Unix command to find files read by specific user
I would like to find files accessed by specific user (even just read) within a folder tree. I thought the find command had this option, but it actually just searches for owner user. Is there any other ...
3
votes
1answer
523 views
Group within group file permissions
I tried finding this on here, but couldn't so sorry if it's a duplicate.
Say I have 2 groups and a user: group1, group2, user1
with the following structure: group1 is a member of group 2, user1 is a ...
2
votes
2answers
101 views
How to generate folder ownership lists for each user?
I'd like to generate several separate lists for each user in Ubuntu. The lists contains the files and folders belong to each user.
Using the command following list me all the users in the system:
...
2
votes
1answer
108 views
Where can I find a reference to the format of the comment field (field 5) of the /etc/passwd file?
In the /etc/passwd file on my system, the "comment" field, field 5, is inconsistent in its contents. I thought that I could extract it to get the full name of the user.
fullname=`awk -F: '$1 == name ...
5
votes
3answers
7k views
Correct permissions for /var/www/html?
I'm able to write changes in the home directory, but when it comes to the /var/www/html folder, it's not allowing me to make any changes or create new files or folders.
I'm able to view the files in ...
8
votes
6answers
2k views
What does the “number” in the owner field of files signify in linux?
I copied many files to my new linux host. I see that all files have the owner and group both set to 515. What does that mean?
2
votes
2answers
233 views
using chown in linux
I want to assign www-data user full rights in folder /var/www/ and all of the files inside this folder.
I have tried chown www-data /var/www/