Results 1 to 3 of 3

Thread: permissions on a freshly mounted [external] drive

  1. #1

    Default permissions on a freshly mounted [external] drive

    hello dear linux-devs and fans.


    well i have mounted a external drive at

    Code:
        # mkdir /mnt/external
    and subsequently

    Code:
        mkdir -p /mnt/external
        mount /dev/sdb1 /mnt/external
    now only the root-user has access to write to these folders.


    Code:
        linux-wyee:/home/martin # dir /mnt
        drwxr-xr-x 2 root root 4096 13. Dez 22:01 external
    how to change this - how to change that all can write to the external drive.
    i need to change the permissions within the terminal....

    Code:
        chmod 777 /dev/sdb1 /mnt/external or something alike -
    what do you think!?

    - greetings dilbert ;-) - the first!
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: permissions on a freshly mounted [external] drive

    On 2013-12-14 14:26, dilbertone wrote:
    >
    > hello dear linux-devs and fans.
    >
    >
    > well i have mounted a external drive at


    You already asked about this on another thread and I answered it.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  3. #3

    Default Re: permissions on a freshly mounted [external] drive

    hello dear all


    i did it this way:


    Code:
    linux-wyee:/mnt # chown martin:users /mnt/external
    see the results: - it is obvious that it works ;-)


    Code:
    martin@linux-wyee:/> cd mnt
    martin@linux-wyee:/mnt> ls -l
    insgesamt 4
    drwxr-xr-x 3 root root 4096 13. Dez 19:43 external
    martin@linux-wyee:/mnt> su
    Passwort: 
    linux-wyee:/mnt # ^C
    linux-wyee:/mnt # 
    
    linux-wyee:/mnt # chown martin:users /mnt/external
    
    linux-wyee:/mnt # cd mnt
    bash: cd: mnt: Datei oder Verzeichnis nicht gefunden
    linux-wyee:/mnt # ls -l
    insgesamt 4
    drwxr-xr-x 2 martin users 4096 13. Dez 22:01 external
    linux-wyee:/mnt #
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

Posting Permissions

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