Below command can be executed as root user to create a directory owned by non root user and group.
For e.g. if you want to create /tmp/testdir directory which is owned by testuser and testgroup, below command has to be executed as root user.
Products to which Article Applies
install -g <group> -o <user> -d <directory name>
For e.g. if you want to create /tmp/testdir directory which is owned by testuser and testgroup, below command has to be executed as root user.
install -g testgroup -o testuser -d /tmp/testdir
Products to which Article Applies
No comments:
Post a Comment