file-ownership
Introduction
Check current ownership
Check ownership in the current directory:
ultimatebyte@game:~$ ls -l
total 32
drwxr-xr-x 5 ultimatebyte ultimatebyte 4096 Jan 29 22:26 lgsm
drwxr-xr-x 5 ultimatebyte ultimatebyte 4096 Jan 29 22:23 log
drwxr-xr-x 4 ultimatebyte ultimatebyte 4096 Jan 29 22:26 serverfiles
drwxr-xr-x 8 ultimatebyte ultimatebyte 4096 Jan 29 22:26 Steam
drwxr-xr-x 5 ultimatebyte ultimatebyte 4096 Jan 29 22:24 steamcmd
-rwxr-x--- 1 ultimatebyte ultimatebyte 5691 Jan 30 01:14 twserverCheck ownership from all files and hidden files of any directory
All these commands require elevated privileges!
Change owner
Command
Single file syntax
Recursive syntax (include sub files and directories)
Example
Group ownership
Command
Single file syntax
Recursive syntax (include sub files and directories)
User and group ownership
Command
Single file command
Recursive
Example:
Last updated
Was this helpful?

