Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, I want to give a mounted folder /mnt/folder access so that 'root and the group test have read write access' and all other users have read access I understand ...
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    2

    chmod question

    Hello,

    I want to give a mounted folder /mnt/folder

    access so that 'root and the group test have read write access'

    and all other users have read access

    I understand most of the chmod command, the users groups world etc
    but where in the 'command' do you specify which 'group' or 'user' you are
    giving the read / write access to? in all the tutorials i've seen no where do you specify the actual group or user.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    Have a look at
    Code:
    man chown
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    11
    Agree with irithori, you have to change the ownership of that folder to root and its usergroup. chown (file/foldername) (user)

  4. #4
    Just Joined!
    Join Date
    Nov 2010
    Location
    Indonesia
    Posts
    3
    Quote Originally Posted by elemental09 View Post

    'root and the group test have read write access'

    and all other users have read access
    first check its owner and permission using ls -l
    then sudo chown test:test -R /mnt/folder (this will change the owner and group into test)

    then probably sudo chmod 766 -R /mnt/folder

    Quote Originally Posted by elemental09 View Post
    where in the 'command' do you specify which 'group' or 'user' you are
    giving the read / write access to?
    normally owner of file have access to change its permission. CMIIW, anyone who upload or create the file will be the first owner of its file. check file owner and permission using ls -l. then change to whoever you want using root access

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...