n1ght28
Posts: 6
Joined: Thu Sep 20, 2012 4:20 pm

sudo chown -R root:users "Operation not permitted"

Wed Oct 31, 2012 2:03 am

using this guide http://elinux.org/R-Pi_NAS
to setup Samba share

changing the permissions of the share

Code: Select all

sudo chown -R root:users /home/shares/public
gives me lots and lots of

Code: Select all

chown: changing ownership of `/home/shares/public/': Operation not permitted
for all the files and folders in it.

the share is the mountpoint for my usb hardrive FAT32

where am i going wrong here???

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: sudo chown -R root:users "Operation not permitted"

Wed Oct 31, 2012 2:07 am

FAT32 does not support unix style ownership permissions.

n1ght28
Posts: 6
Joined: Thu Sep 20, 2012 4:20 pm

Re: sudo chown -R root:users "Operation not permitted"

Wed Oct 31, 2012 2:34 am

THANK YOU THANK YOU THANK YOU,

Now is there a way around this,

you see i need my usb hardrive to be readable by both my windows laptop and my xbox360

is there a different format that will fit the bill?

jaromanda
Posts: 93
Joined: Wed Sep 12, 2012 12:33 pm

Re: sudo chown -R root:users "Operation not permitted"

Wed Oct 31, 2012 4:53 am

how do you mount it? you can specify uid/gid on mounting
I now own 2 RPi - does that mean I own a circumference?

n1ght28
Posts: 6
Joined: Thu Sep 20, 2012 4:20 pm

Re: sudo chown -R root:users "Operation not permitted"

Wed Oct 31, 2012 7:43 pm

Ok,
Got it to mount with

Code: Select all

sudo mount -t vfat -o defaults,user,exec,uid=1000,gid=100,umask=000,rw /dev/sda1 /home/shares/public/disk1
I can create folders from the raspberry and "cd" into them,

But I cant create folders from connected Samba clients,

think its a problem with my fstab or my smb.conf

Fstab

Code: Select all

//192.168.1.19/public /media/pi cifs uid=calbert,credentials=/home/calbert/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
smb.conf

Code: Select all

####### Authentication #######

security = user
  client lanman auth = Yes
  lanman auth = Yes


[global]
workgroup = WORKGROUP
netbios name = xbian
server string = xbian
log file = /var/log/samba/log.%m
max log size = 50
map to guest = bad user
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
dns proxy = no


[public]
path = /home/shares/public
public = yes
only guest = yes
writable = yes

where am I going wrong,

Return to “Beginners”