Score:1

ไดรฟ์ภายนอก: ไฟล์ที่สร้างทั้งหมดเป็นของรูท

ธง ru

ฉันมีดิสก์ USB 3.0 ภายนอกซึ่งฉันติดตั้งเป็น:

sudo mount -t ntfs -o rw,auto,user,umask=003,o+r,gid=science /dev/sda1 /media/external

มี 2 ​​ปัญหาที่ฉันไม่แน่ใจว่าจะแก้ไขได้อย่างไร:

1: เมื่อฉันทำ ทดสอบการสัมผัสไฟล์นี้เป็นไฟล์เรียกทำงานตามค่าเริ่มต้น

2: ไฟล์เป็นของ root ไม่ใช่ผู้ใช้

สิ่งที่ฉันพยายามทำคือการตั้งค่าให้ผู้ใช้และกลุ่มเข้าถึงไดร์ฟได้ไม่จำกัด (รวมถึงการอนุญาตการตั้งค่า) และอื่น ๆ สามารถอ่านได้เฉพาะไฟล์และเนื้อหาไดเร็กทอรีรายการเท่านั้น นอกจากนี้ ไม่ควรทำเครื่องหมายไฟล์ว่าเรียกใช้งานได้ตามค่าเริ่มต้น

sudodus avatar
jp flag
The following link can help you modify the ownership and/or permissions: [Mount NTFS partition in a USB drive with custom permissions and owner](https://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition/956072#956072)
sudodus avatar
jp flag
If you want a more detailed control of the ownership and/or permissions, I suggest that you use a Linux file system, for example `ext4`, which is the standard file system of Ubuntu. But Windows refuses to read it, so if that is necessary you may try `udf`, which has other problems (lack of active support but may work for you). See [this link](https://askubuntu.com/questions/952673/how-do-i-copy-a-file-larger-than-4gb-to-a-usb-flash-drive/952706#952706); scroll down to read about `udf` and the package `udftools`.
vanadium avatar
cn flag
Does this answer your question? [How do I use 'chmod' on an NTFS (or FAT32) partition?](https://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition)
Luca avatar
ru flag
@vanadium There is another thing...that all files are owned by `root` rather than the user which created them.
sudodus avatar
jp flag
@Luca, is it an option for you to use a Linux file system, or must the filesystem work with Windows?
vanadium avatar
cn flag
That is what the `uid` option determines in the link provided. Study the ntfs mount options to set it up like you want.

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา