I encounter a strange problem on a unix/linux machine:
I'm member of a group, let's call it group A and a certain file (which has a different owner) belongs to group A as well. The permissions of that file are
-rw-rw----
so I'd expect I should be able to open that file, but I am not: I'll get the "Permission denied" error message when I try to look at the file's content (using cat).
I would like to find files only by a certain user's permission.
For example, if I want to find a file that I have full permission.
I may do something like:
find . -user $(whoami) -perm
But what should I put after -perm, if I want ignore the permission of root and other users.
I know there must be a lot of similar questions like this. But most of them are just similar.
Thanks in advance.
Hi,
I am trying to change the owner permission of file as "read only" when the file is rcp
(remote copy ) from server to another for security reason.
Any way to change to permission as readonly access for owner and group ( 550 )when transfer the file using the rcp command ? I tested but still retain the original permission as source file.
I need to find the latest created file in a FTP folder.
hi, I want to allow two users to read/write privileges to an specific files and folders, currently the owner of the dir is "user1.user1", so, I add the user "user2" the "user1 group" with this command:
Code:
nano /etc/group
then i tried that the user2 to write files into that directory but it does not work, the error got it was: "permission denied",
I have a USB printer that when I connect to the computer it's owned by the user root and the group lp, and it's file permission is rw-rw----, so I have to print via apache/php script.
I have a cronjob running as root that compiles a java program and moves it into my document root where i have the ability to download it using php, trouble is apache wont even allow read access to the compiled program no matter what owner/group/permissions i give it.
$ ll
-rwxrwxrwx 1 root root 3422 Jan 5 12:24 jim_HgHDJQDJQWIDIJQWIDUQIU928121818.class
But when i check using php the results
How can I search for files that have a specific permission. For example, I have 10000 files and I want to find the ones that have the READ ONLY flag. In another case I want to search for another that has a particular owner. Or in another to see the files that are READ ONLY and EXECUTABLE.
Hi All,
I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be possible and how can this be achieved within samba configuration.
Regards,
Sahil