Advertisement
evilqubit

groups - users privilages linux

Apr 16th, 2013
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. sudo chown _www:_www /Users/macuser/Sites // add group to owner of Dir
  2. sudo chmod g+rwx /Users/macuser/Sites // change the permission
  3. less /etc/group // check
  4. sudo dseditgroup -o edit -a macuser -t user _www //add user to group
  5.  
  6. id userid
  7.  
  8. ls -ld check owner to directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement