Quick Answer: How Do I Change Permissions from Root to User in Linux?
Contents Option Meaning O Others; Change the Other Permissions How Do I Change from Root to User in Linux? How to Change the Owner of a File Become Superuser...
Contents
| Option | Meaning |
|---|---|
| o | Others; change the other permissions |
How do I change from root to user in Linux?
How to Change the Owner of a File
- Become superuser or assume an equivalent role.
- Change the owner of a file by using the chown command. # chown new-owner filename. new-owner. Specifies the user name or UID of the new owner of the file or directory. filename. …
- Verify that the owner of the file has changed. # ls -l filename.
Must Read
How do I give permission to user in Linux?
To change directory permissions in Linux, use the following:
- chmod +rwx filename to add permissions.
- chmod -rwx directoryname to remove permissions.
- chmod +x filename to allow executable permissions.
- chmod -wx filename to take out write and executable permissions.