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: Thu Apr 20, 2006 12:18 pm 
Offline
Joined: Mon Apr 03, 2006 9:36 am
Posts: 3
Is there a way to not have to enter a user ID and password when starting up mythweb or samba? I use both behind a router, so I'm not all concerned with someone stumbling into them. It's just a pain in the ass.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 20, 2006 12:46 pm 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
There is a script in /usr/bin/ called ToggleWebSecurity.sh ... I'm assuming that does indeed toggle security on and off. Run it with the "--help" parameter and you'll see there are options for securing just MythWeb or every Apache page.

That should do it for Apache, not sure about samba, you'll have to nose around on how to do so.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 20, 2006 5:01 pm 
Offline
Joined: Tue Jan 17, 2006 7:34 am
Posts: 126
Location: Australia
when you try to connect to samba from your windows box windows will first offer the currect set of credentials(user/pass) in use on your windows box. If that use is not valid then you are asked to supply a valid user/pass.

This opens the option to have samba use your currect user (on the windows box) , but only if the SAME user/pass exist on the mythtv system or in samba's password file.

Once you have a valid use you can then use samba to force your access to a share to act as a differant user.

eg , you are logged in as 'mobius' on your windows box , you try to connect to a share on your mythtv box
Code:
net use m: \\mythtv\mythtv
net use v: \\mythtv\mythvideo

samba uses the useron your mythtv box and you can connect , when a file is accessed from you windows box samba forces the use of the mythtv user .

That way all file access is correct and everyone is happy.

1. add the same user/password to your mythtv box
2. edit your /etc/samba/smb.conf
3. restart samba
4. test

Code:
/etc/samba/smb.conf


look for this in your currect config
Code:
[myth]
        comment = Myth files
        writeable = yes
        valid users = mythtv
        path = /myth


and replace it with something like this

Code:
[mythtv]
   comment = Myth tv files
   path = /myth/tv
   valid users = user1,user2,mythtv
   writable = yes
   printable = no
   create mask = 0765
   case sensitive = yes
   force user = mythtv
   force group = mythtv

[mythvideo]
   comment = Myth video files
   path = /myth/video
   valid users = user1,user2,mythtv
   writable = yes
   printable = no
   create mask = 0765
   case sensitive = yes
   force user = mythtv
   force group = mythtv

Code:
root@mythtv:/myth# /etc/init.d/samba restart

I have more then one use to deal with at my house so I add them all to the 'valid users'

Chris


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 13 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu