Permissions problem with mount
I am pretty mush a newb with Linux and I'm stuck on something. I have two computers. One runs unRaid NAS software which is built on Linux. The other is running XBMC media center which is built on Ubuntu. XBMC has a local folder (/home/kevin/.xbmc/userdata/Thumbnails/) that it stores thumbnails in. I am essentially trying to move this folder to my server, but XBMC needs to see it as local. I started by deleting the old Thumbnails folder and it's contents. I then created an empty Thumbnails folder on XBMC and I also created one on my unRaid comp (192.168.1.20/disk7/xbmc_thumbs/Thumbnails). On the XBMC comp I run:
Code:
chmod 777 Thumbnails Code:
chown -v kevin Thumbnails Can anyone show me the light here. I'm dying to get this up and running. |
By not providing credentials when you mount the remote drive, you're probably getting authenticated as 'guest' which may not have write access. The mount should look more like:
Code:
mount -t cifs -o user=xxx,password=yyy //192.168.1.20/disk7/xbmc_thumbs/Thumbnails Thumbnails Code:
mount -t cifs -o credentials=/path/to/credentials //192.168.1.20/disk7/xbmc_thumbs/Thumbnails Thumbnails |
OK. Whose username and password should that be? An XBMC username/password or an unRaid username/password?
Due to the unRaid being a NAS, all it's shares and stuff were setup "out of the box". I didn't have to set any of that up. The unRaid shares that are available across my network never require any usernames or passwords whenever I copy stuff to them from my Windows machines. The only username/password I'm aware of for it is root which I use once in a blue moon to log into the console. |
I've just tried all the users I know of on both machines and every time I try to manually copy a file to that directory while logged in as kevin, I get permission denied.
|
Ok ... can you try mounting it when logged in as kevin ?
|
That's how I have been mounting it, but I have to use sudo to do it.
|
Can you post the output of 'cat /proc/mounts' ?
|
Code:
kevin@XBMCLive:~$ cat /proc/mounts |
In looking at that, I think there are some remnants of different attempts to get this working. I know the line where it says '192.168.1.20:/mnt/user/xbmc /mnt/xbmc' was a line someone had me add to fstab to try to do this whole thing a different way. I must have forgot to remove it. Here is the line they had me add to fstab:
Code:
192.168.1.20:/mnt/user/xbmc /mnt/xbmc nfs rw,hard,intr 0 0 |
Try adding file_mode=0777 and dir_mode=0777 to your mount options
<edit> .. that's your CIFS mount options, not NFS </edit> |
Not to be stupid, but how do I do that? Just add them to the end of the mount -t cifs command?
|
Something like:
Code:
mount -t cifs -o file_mode=777,dir_mode=777 //192.168.1.20/disk7/xbmc_thumbs/Thumbnails Thumbnails |
Not sure if this means anything:
Code:
kevin@XBMCLive:~/.xbmc/userdata$ sudo mount -t cifs -o file_mode=777,dir_mode=777 //192.168.1.20/disk7/xbmc_thumbs/Thumbnails Thumbnails |
Here's the resulting permissions:
Code:
kevin@XBMCLive:~/.xbmc/userdata$ ls -l |
Now it won't even let me go into the Thumbnails directory let alone write something.
|
Sorry... for octal you'll need to add leading '0's - file_mode=0777
|
YES!! That seems to be working now. Thanks so much!
|
All times are GMT -5. The time now is 07:10 PM. |