Advertisement
Guest User

Untitled

a guest
Jun 16th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. pawel /sync $ sudo addgroup --system root-sync
  2. Adding group `root-sync' (GID 136) ...
  3. Done.
  4. pawel /sync $ sudo adduser root root-sync
  5. Adding user `root' to group `root-sync' ...
  6. Adding user root to group root-sync
  7. Done.
  8. pawel /sync $ sudo adduser pawel root-sync
  9. Adding user `pawel' to group `root-sync' ...
  10. Adding user pawel to group root-sync
  11. Done.
  12. pawel /sync $ sudo chown root:root-sync -R settings/
  13. pawel /sync $ ls -l
  14. total 4
  15. drwxrwxr-x 2 root root-sync 4096 Jun 16 15:25 settings
  16. pawel /sync $ cd settings
  17. pawel /sync/settings $ touch testfile
  18. touch: cannot touch `testfile': Permission denied
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement