Results 1 to 3 of 3

Thread: EXT4-formatted USB flash wih all permissions

  1. #1
    Join Date
    Aug 2017
    Beans
    2

    EXT4-formatted USB flash wih all permissions

    I need to create an EXT4-formatted partition on a USB flash drive and write folders/files. The drive will be used on another Linix machine by any user, so I need to set the the least restrictive permissions, so every user and every process on every machine should be able to read the drive.

    Will "chmod -R 777 /folder" do?

    Thanks

  2. #2
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: EXT4-formatted USB flash wih all permissions

    Howdy,

    You need to create a directory and set the sticky bit. Then all new files will inherit the owner and permissions of the directory.

    So, use "chmod 1777 directoryname"

  3. #3
    Join Date
    Aug 2017
    Beans
    2

    Re: EXT4-formatted USB flash wih all permissions

    Quote Originally Posted by HermanAB View Post
    You need to create a directory and set the sticky bit. Then all new files will inherit the owner and permissions of the directory.

    So, use "chmod 1777 directoryname"
    Thanks.
    Now if I need all other users/process on all other machines be able to read/copy, but NOT to delete or modify my data?

Tags for this Thread

Bookmarks

Posting Permissions

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