blob: b2b77ee96d4cee4b2e79514201a6070a214461a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
Index: src/sambaBackend.py
===================================================================
RCS file: /usr/local/CVS/redhat-config-samba/src/sambaBackend.py,v
retrieving revision 1.14
diff -u -b -B -r1.14 sambaBackend.py
--- src/sambaBackend.py 4 Mar 2004 23:55:01 -0000 1.14
+++ src/sambaBackend.py 22 Sep 2006 04:35:54 -0000
@@ -31,7 +31,7 @@
class SambaBackend:
def isSmbRunning(self):
- fd = os.popen('LC_MESSAGES=C /etc/init.d/smb status')
+ fd = os.popen('LC_MESSAGES=C /etc/init.d/samba status')
lines = fd.readlines()
fd.close()
@@ -43,14 +43,14 @@
return 1
def startSamba(self):
- path = '/sbin/service'
- args = ['/sbin/service', 'smb', 'start']
+ path = '/etc/init.d/samba'
+ args = ['/etc/init.d/samba', 'start']
- fd = os.popen('/sbin/service smb start')
+ fd = os.popen('/etc/init.d/samba start')
lines = fd.readlines()
fd.close()
def restartSamba(self):
- fd = os.popen('/sbin/service smb restart')
+ fd = os.popen('/etc/init.d/samba restart')
lines = fd.readlines()
fd.close()
Index: src/sambaUserData.py
===================================================================
RCS file: /usr/local/CVS/redhat-config-samba/src/sambaUserData.py,v
retrieving revision 1.31
diff -u -b -B -r1.31 sambaUserData.py
--- src/sambaUserData.py 1 Apr 2005 15:35:37 -0000 1.31
+++ src/sambaUserData.py 22 Sep 2006 04:35:54 -0000
@@ -42,7 +42,7 @@
def readSmbPasswdFile(self):
#Let's check to see if smbpasswd exists
- path = '/etc/samba/smbpasswd'
+ path = '/var/lib/samba/private/smbpasswd'
list = []
if os.access(path, os.F_OK) == 1:
|