Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
mount -t cifs //192.168.1.20/disk7/xbmc_thumbs/Thumbnails Thumbnails
It creates the mount and as long as I'm logged in as root, I can copy files to the XBMC Thumbnails folder and they appear on my unRaid server's Thumbnails folder. The problem is that if I log in as kevin (the user that XBMC runs as) I get permission denied errors. I've tried changing ownership of the XBMC Thumbnails folder to kevin via :
Code:
chown -v kevin Thumbnails
and it says it changed it, but if I check, the ownership and group both still show as root. I'm thinking that may be because now that the mount is made, it's showing the ownership of the Thumbnails folder on the unRaid server? Whatever it's doing I can't seem to change it and XBMC can't write it's thumbnails because of this.
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
or
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.
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:
kevin@XBMCLive:~/.xbmc/userdata$ sudo mount -t cifs -o file_mode=777,dir_mode=777 //192.168.1.20/disk7/xbmc_thumbs/Thumbnails Thumbnails
WARNING: 'file_mode' not expressed in octal.
WARNING: 'dir_mode' not expressed in octal.
Password:
kevin@XBMCLive:~/.xbmc/userdata$
kevin@XBMCLive:~/.xbmc/userdata$ ls -l
total 160
-rw-r--r-- 1 root root 296 2010-04-25 12:28 advancedsettings.xml
drwxr-xr-x 7 kevin kevin 4096 2010-04-25 18:19 bakThumbnails
drwxr-xr-x 3 kevin kevin 4096 2010-05-03 20:16 Database
-rw-r--r-- 1 kevin kevin 114527 2010-05-04 22:07 guisettings.xml
drwxr-xr-x 2 kevin kevin 4096 2010-01-23 22:43 keymaps
-rw-r--r-- 1 kevin kevin 83 2010-05-01 21:03 LastfmScrobbler.xml
-rw-r--r-- 1 kevin kevin 1573 2010-01-23 22:43 LCD.xml
-rw-r--r-- 1 kevin kevin 83 2010-05-01 21:03 LibrefmScrobbler.xml
drwxr-xr-x 5 kevin kevin 4096 2010-01-23 22:43 playlists
-rw-r--r-- 1 kevin kevin 309 2010-05-04 22:07 profiles.xml
-rw-r--r-- 1 kevin kevin 391 2010-01-23 22:43 RssFeeds.xml
-rw-r--r-- 1 root root 1339 2010-01-23 22:56 sources.xml
dr----x--t 1 root root 0 2010-05-05 21:41 Thumbnails
drwxr-xr-x 2 kevin kevin 4096 2010-03-10 14:20 visualisations
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.