Hallo!
Is there a command I can use in order to list all files and folders owned by a spcified user on a fc2 server?
Thanks!
Bjorn
On Sat, 01 Oct 2005 16:35:26 +0200, bsnottum wrote:
Hallo!
Is there a command I can use in order to list all files and folders owned by a spcified user on a fc2 server?
Thanks!
Bjorn
find . -uid n -print
will find the files in the current directory whose user id is n. To see a user's id:
id some_user
bsnottum@hkskole.no wrote:
Hallo!
Is there a command I can use in order to list all files and folders owned by a spcified user on a fc2 server?
Use "find /path -user username" . This should give you the list of files.. For all files on a server, you'd probably run that twice, once on /home and once on /var/tmp , unless the user has write access to other directories.
-- Pedro Macedo
bsnottum@hkskole.no wrote:
Is there a command I can use in order to list all files and folders owned by a spcified user on a fc2 server?
$ man find $ find / -user USERNAME -print 2>/dev/null