If I execute ls -al
, i get:
drwxr-xr-x 14 root root 4096 Jan 16 02:15 <dir-name>
But I want:
drwxr-xr-x 14 <user> <user> 4096 Jan 16 02:15 <dir-name>
If I execute ls -al
, i get:
drwxr-xr-x 14 root root 4096 Jan 16 02:15 <dir-name>
But I want:
drwxr-xr-x 14 <user> <user> 4096 Jan 16 02:15 <dir-name>
sudo chown myuser:mygroup mydir
chown [-c|--changes] [-v|--verbose] [-f|--silent|--quiet] [--dereference]
[-h|--no-dereference] [--preserve-root]
[--from=currentowner:currentgroup] [--no-preserve-root]
[-R|--recursive] [--preserve-root] [-H] [-L] [-P]
{new-owner|--reference=ref-file} file ...
You can chmod
a file/folder sudo chmod 777 <folder>
will allow read/write/execute bits for anyone on the system. This however can be a security issue. Read here to find out more.