Answers for "how to create a directory with user and group in linux"

2

change the user group of folder linux

# You might need to use sudo with this command
# Change group
chgrp [USER] [FILE]
chgrp -R [USER] [FOLDER]

# Change owner
chown [USER] [FILE]
chown -R [USER] [FOLDER]
Posted by: Guest on October-20-2021
3

add user to group linux

sudo usermod -aG <groups> <username>
Posted by: Guest on October-02-2021

Code answers related to "how to create a directory with user and group in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language