Find the answer to your Linux question:
Results 1 to 4 of 4
Hello to all, First I would like to mount usb pen drive to /mnt/usb. For that I use the command like "mount /dev/sda1 /mnt/usb" It gives the permission like "drwxr-xr-x ...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    13

    Thumbs up chmod can not change permission

    Hello to all,

    First I would like to mount usb pen drive to /mnt/usb.

    For that I use the command like "mount /dev/sda1 /mnt/usb"

    It gives the permission like
    "drwxr-xr-x 10 root root 16384 Jan 1 1970 /mnt/usb"

    But I want that no user other than root user can use it.

    for that I use comman like "chmod 0700 /mnt/usb"

    But It gives error like
    "chmod: changing permissions of `/mnt/usb/' (requested: 0700, actual: 0755): Operation not permitted"

    I have done all these procedures as root user.

    I have problem like this in Redhat 9 and RHEL3.

    So what should be solution of my problem ?

    Please help me if possible.

    Any good reply is apprecialble.

    Thanking You in advance.

  2. #2
    Linux User Agent-X's Avatar
    Join Date
    May 2005
    Location
    Dimension X
    Posts
    261
    Are you root when you use chmod?

  3. #3
    Linux Newbie birdman's Avatar
    Join Date
    Mar 2006
    Location
    Ireland
    Posts
    141
    I think you need to set the umask to 077 when you mount

    Use this link:
    mount()

    I am assuming your USB drive is using the FAT filesystem so if you search for "Mount options for fat" at that link it should answer your question.

  4. #4
    Just Joined!
    Join Date
    Nov 2006
    Posts
    13

    Thanks

    Quote Originally Posted by birdman View Post
    I think you need to set the umask to 077 when you mount

    Use this link:
    mount()

    I am assuming your USB drive is using the FAT filesystem so if you search for "Mount options for fat" at that link it should answer your question.
    Thank you very much.
    My problem is solved.
    Now I can mount my usb pendrive without any problem.
    Thanks to every one who answer me.

Posting Permissions

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