View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Dec 23, 2008 5:13 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
I have my KM box with the standard KM samba sharing /myth read/write.

I have a Debian/Lenny box and use the following script to mount my /myth on demand:

Code:
sudo mount -t cifs -o credentials=/root/.smbcredsmyth //mythtv/myth ~/myth


The .smbcredsmyth simply contains:
Code:
username=mythtv
password=mythtv


It does a great job mounting. What's odd is when I attempt to copy files to it, I get permission denied. That said, I am able to copy the files through Gnome just fine (smb://mythtv/myth). Can someone venture a guess what I'm doing wrong?

Here is the output of mount:
Code:
//mythtv/myth on /home/user/myth type cifs (rw,mand)

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Last edited by graysky on Sat Jan 31, 2009 11:33 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 25, 2008 5:41 am 
Offline
Joined: Tue Jan 23, 2007 1:38 pm
Posts: 249
Location: Sweden
I learned the hard way that I want to use the smbmount command rather than mount. Here's my /etc/fstab line on my mythbox:
//SCOOBYDOO/data /mnt/SCOOBYDOO/data smbfs lfs,username=mythtv,password=mythtv,uid=mythtv,gid=mythtv 0 0

Obviously, your way of having the credentials in a separate file is much safer.
"lfs" is a good option for large files and I suppose the uid and gid stuff may be what you're after?

Cheers,
/Chris

_________________
LinHES R8.6.1
BE: AMD64X4, 4GB, Hauppauge usb tuners
FE1: Gigabyte F2A85X-UP4, nVidia GT640
FE2: Gigabyte GA-MA69GM-S2H, AthlonX2 4850E 2.5 GHz, 1GB, ASUS GEFORCE 7200GS 256MB
FE3: Asus Eeebox410


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 31, 2009 11:32 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Ahh... the solution is to add uid and gui fields to my user on the "workstation" box to the mount commend:

Code:
$ mount -t cifs -o credentials=/root/.smbcredsmyth,uid=1001,gid=1001 //mythtv/myth ~/myth


Now I am able to read/write to the share through the filesystem just fine. The key here is that my user on the workstation is NOT 'mythtv' and somehow, when omitting the uid/gid lines, the LINUX permission are getting applied when mounted this way.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 62 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu