Linux-Noob Forums
Set chown and chmod in external HDD - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: How Do I? (https://www.linux-noob.com/forums/forum-60.html)
+--- Thread: Set chown and chmod in external HDD (/thread-414.html)

Pages: 1 2


Set chown and chmod in external HDD - leonardo - 2010-10-31


Quote:Can you post the output of your "mount" and "df" commands at all?
sure

 

df:



Code:
Filesystem        blocchi di   1K   Usati Disponib. Uso% Montato su
/dev/mapper/VolGroup00-LogVol00
                    217523948   7061120 199234876   4% /
/dev/sda5              4956284    407280   4293172   9% /var/log
/dev/sda3              4956316   2474944   2225540  53% /usr
/dev/sda2              4956316    142756   4557728   4% /tmp
/dev/sda1               101086     12666     83201  14% /boot
tmpfs                  1029016         0   1029016   0% /dev/shm
/dev/sdb1            1464777792   5957664 1458820128   1% /backup




 

mount:



Code:
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw,usrquota,grpquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda5 on /var/log type ext3 (rw)
/dev/sda3 on /usr type ext3 (rw)
/dev/sda2 on /tmp type ext3 (rw,noexec,nosuid)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw,noexec,nosuid)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /backup type vfat (rw,uid=501,gid=501)







Set chown and chmod in external HDD - Dungeon-Dave - 2010-11-01


okay - it looks like it IS getting mounted with the correct UID/GID but commands to write to that filesystem aren't working.

 

Try "ls -ald /backup" again, it should say admin:admin not root:root.

 

Another option to try is "chown admin:admin /backup" - see if that changes permissions on the mount point

 

Can you try listing some permissions of files/dirs lower down inside the /backup dir, see if those reflect admin:admin also?




Set chown and chmod in external HDD - leonardo - 2010-11-01


mmm... if i type "#chown admin:admin /backup" the result is: Operation not permitted

 

I'am login as root o_Oo_O

 

if I type "#ls -ald /backup" the result is: drwxr-xr-x 7 root root 32768 27 ott 13:30 /backup

 

[img]<___base_url___>/uploads/emoticons/default_mad.gif[/img][img]<___base_url___>/uploads/emoticons/default_mad.gif[/img][img]<___base_url___>/uploads/emoticons/default_mad.gif[/img]




Set chown and chmod in external HDD - Dungeon-Dave - 2010-11-01

Quote:Can you try listing some permissions of files/dirs lower down inside the /backup dir, see if those reflect admin:admin also?



Set chown and chmod in external HDD - leonardo - 2010-11-02


all dir and files have admin:admin

 

if I login with admin and I try to create a dir o a file I have this error: Permission denied




Set chown and chmod in external HDD - Dungeon-Dave - 2010-11-03

No idea, I'm afraid - I tried it with a USB pen of mine and it worked fine. No idea why it doesn't work on your system.



Set chown and chmod in external HDD - leonardo - 2010-11-03

if I format the HDD with another type of partition?



Set chown and chmod in external HDD - Dungeon-Dave - 2010-11-03


Erm.. not certain what you mean there.

 

If you scrub the USB pen then create a Linux-based filesystem on it? (ext3/4, for instance)

 

That would work. You probably need to install EXT2-IFS under Windows for Win-based OSen to see it.