Whatsup - לינוקס, תוכנה חופשית וקוד פתוח בעברית

קבצים והתקנות - Why root can't change ownership?

מייקי - 14/11/2017 - 12:03
נושא ההודעה: Why root can't change ownership?
קוד:


Hi,
Fresh dual boot Arch/Win 10 (with fast startup DISABLED) here.
MY questions:
1. After fresh boot, why is partition /Photos owned by root?
2/ Why  root can NOT chown that partition to regular user miki?

Thanks

Attached respective terminal output-------------------




קוד:

# cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sdc4
UUID=e881c7e4-3bdf-4909-986c-b513924a863e       /               ext4            rw,relatime,data=ordered        0 1

# /dev/sda1
UUID=86e22300-c161-4486-b898-3b47279a0568       /home           ext4            rw,relatime,data=ordered,noauto,x-systemd.automount     0 2

# /dev/sda2
UUID=719e3d48-c846-4bc7-8958-26f719b1813f       /var            ext4            rw,relatime,data=ordered        0 2

# /dev/sdc3 LABEL=ESP
UUID=4205-8433          /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2

# /dev/sdb2
UUID=cbabd2ed-7e56-42ab-b4ec-42e884a50289       none            swap            defaults        0 0

# /dev/sda3
UUID=65966F4C5D151B9F                           /Win_Data       ntfs-3g         rw,user,exec,umask=000          0 0

# /dev/sdb3
UUID=4A7415857C30A6E9                           /Photos       ntfs-3g         rw,user,exec,umask=000        0 0
 
# /dev/sdc2
UUID=0002049D02049A34                           /Windows       ntfs-3g         defaults        0 0

     


ls -al /Photos/
total 12
drwxrwxrwx  1 root root 4096 Nov 14 04:20  .
drwxr-xr-x 20 root root 4096 Nov 14 10:52  ..
drwxrwxrwx  1 root root    0 Nov 13 05:59 '$RECYCLE.BIN'
drwxrwxrwx  1 root root 4096 Nov 13 05:59 'System Volume Information'
     

 chown -R miki /Photos/

 ls -al /Photos/                                                                                                                                                             
total 12                                                                                                                                                                                           
drwxrwxrwx  1 root root 4096 Nov 14 04:20  .                                                                                                                                                                                                                                   
drwxr-xr-x 20 root root 4096 Nov 14 10:52  ..                                                                                                                                                                                                                                 
drwxrwxrwx  1 root root    0 Nov 13 05:59 '$RECYCLE.BIN'                                                                                                                                                                                                                       
drwxrwxrwx  1 root root 4096 Nov 13 05:59 'System Volume Information'   



Anonymous - 14/11/2017 - 12:40
נושא ההודעה:
הרשאות על מחיצת ntfs לא עובדות אותו דבר כמו על מחיצה ext4. אתה צריך לעשות לזה mount עם האופציות הרציות.

https://wiki.archlinux.org/index.php/NTFS-3G#Linux_compatible_permissions
מייקי - 14/11/2017 - 13:33
נושא ההודעה: תודה
תודה!

למדתי משהוא חדש בזכותך..
כל הזמנים הם GMT + 2 שעות