Not OK Computer

Wednesday, June 4, 2008

Changing the ownership of a directory or file

use the chown command: chown username dirname

Owner of a directory can be queried using ls -l (3rd column)

chgrp changes the group of a directory. Group name is the 4th column in the results of ls -l
Posted by Yay at 4:51 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2020 (1)
    • ►  February (1)
  • ►  2017 (1)
    • ►  July (1)
  • ►  2016 (1)
    • ►  January (1)
  • ►  2014 (2)
    • ►  April (1)
    • ►  January (1)
  • ►  2013 (7)
    • ►  December (1)
    • ►  July (2)
    • ►  June (3)
    • ►  May (1)
  • ►  2012 (3)
    • ►  November (1)
    • ►  October (1)
    • ►  February (1)
  • ►  2009 (5)
    • ►  November (2)
    • ►  February (1)
    • ►  January (2)
  • ▼  2008 (17)
    • ►  September (3)
    • ►  August (1)
    • ►  July (4)
    • ▼  June (9)
      • Useful linux commands
      • How to move the /home directory to a separate part...
      • How to share files (installing samba)
      • How to monitor CPU temperature in linux
      • Getting DVDs to play in linux
      • Changing the ownership of a directory or file
      • Formatting a hard drive in linux
      • Which version of linux?
      • First Post
Simple theme. Powered by Blogger.