How to use chgrp and chown for a directory ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arthurzzk
    New Member
    • Feb 2007
    • 8

    #16
    chown -R user_Name:user_ Name directory_Name
    chgrp -R user_Name directory_Name

    Comment

    • pankajit09
      Contributor
      • Dec 2006
      • 296

      #17
      Originally posted by drhowarddrfine
      I mean is the "mount_ntfs " command/script available on Linux?

      I don't think becoz when I entered "man mount_ntfs" no result.

      Comment

      • pankajit09
        Contributor
        • Dec 2006
        • 296

        #18
        Originally posted by arthurzzk
        chown -R user_Name:user_ Name directory_Name
        chgrp -R user_Name directory_Name
        I think this should be correct -->

        chown -R owner_name directory_Name
        chgrp -R group_name directory_Name

        Comment

        • pankajit09
          Contributor
          • Dec 2006
          • 296

          #19
          Originally posted by cybervegan
          Sorry for the delay in responding!

          Adding the "user" flag allows ordinary users to mount the device. I'd add gid=grpno too (where grpno is the numeric group number of a group that you want to allow to use /mnt/win - and add all users who should be able to access the windows partition into the relevant group).

          hth,
          -cybevegan

          So is this correct -->

          /dev/hda1 /mnt/win ntfs ro,defaults,use r,umask=0222,gi d=1000 0 0

          How to include all the users ?

          Comment

          • cybervegan
            New Member
            • Jan 2007
            • 36

            #20
            Originally posted by pankajit09
            So is this correct -->

            /dev/hda1 /mnt/win ntfs ro,defaults,use r,umask=0222,gi d=1000 0 0

            How to include all the users ?
            It works like this:
            groupadd winusers
            usermod -G winusers fredb
            usermod -G winusers bills
            usermod -G winusers mayf

            hth,
            -cybervegan

            Comment

            • arthurzzk
              New Member
              • Feb 2007
              • 8

              #21
              Originally posted by pankajit09
              I think this should be correct -->

              chown -R owner_name directory_Name
              chgrp -R group_name directory_Name


              chown -R owner_name:grou p_name directory_Name

              Comment

              Working...