LinHES Forums http://forum.linhes.org/ |
|
Getting rid of Mythweb and Samba passwords http://forum.linhes.org/viewtopic.php?f=11&t=9715 |
Page 1 of 1 |
Author: | mobius [ Thu Apr 20, 2006 12:18 pm ] |
Post subject: | Getting rid of Mythweb and Samba passwords |
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. |
Author: | ceenvee703 [ Thu Apr 20, 2006 12:46 pm ] |
Post subject: | |
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. |
Author: | chrisj [ Thu Apr 20, 2006 5:01 pm ] |
Post subject: | |
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 |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |