Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

command needed

  Date: Dec 31    Category: Unix / Linux / Ubuntu    Views: 369
  

i need a unix command so that i can list only those files that can be
accesed by others(non-root) users.

Share: 

 

2 Answers Found

 
Answer #1    Answered On: Dec 31    

Perhaps an option of the list command? ls

 
Answer #2    Answered On: Dec 31    

You need to experiment with using the find command and the perm
parameter from the root account, i.e. not user, but including group
and other, e.g. from the '/' directory execute:
# find . -perm 077 -print

I don't know if that will work, but you should read the man page for
the find command, and experiment in a new test directory and simply
touch new files into existence with different permissions between,
root, group, and other by using the chmod and chgrp commands to
permutate the different permissions of file combinations that can
exist - there aren't that many.

If you do that, I know you will be able to sort things out for yourself!

 
Didn't find what you were looking for? Find more on command needed Or get search suggestion and latest updates.




Tagged: