| 1 | [[PageOutline]] |
| 2 | |
| 3 | = Samba Web Administration Tool = |
| 4 | * [http://www.eml.ele.cst.nihon-u.ac.jp/~momma/wiki/wiki.cgi/Ubuntu/swat.html Momma's Wiki: Ubuntu/swat - sambaの管理用webインターフェイス swatだけでなくxinetdも...] |
| 5 | |
| 6 | = swat with no root user = |
| 7 | * [https://bugs.launchpad.net/ubuntu/+source/samba/+bug/5608 Bug #5608 in samba (Ubuntu): “SWAT expects to authenticate as root”] |
| 8 | * [https://bugs.launchpad.net/ubuntu/+source/samba/+bug/5608/comments/8 Bug #5608 - Comment #8] |
| 9 | {{{ |
| 10 | The workaround is very simple. Just change the rights of the smb.conf file. The group should be adm and the rights for the group should be set to rw. In commands: |
| 11 | sudo chgrp adm /etc/samba/smb.conf |
| 12 | sudo chmod g+w /etc/samba/smb.conf |
| 13 | }}} |
| 14 | * [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=378454 #378454 - swat: not usable when root account is disabled (pure sudo system) - Debian Bug report logs] |
| 15 | {{{ |
| 16 | Actually, there is another solution: SWAT manages permissions using PAM, |
| 17 | and using rights on /etc/samba/smb.conf. |
| 18 | So the solution is just to allow you user(s) to write to |
| 19 | /etc/samba/smb.conf. |
| 20 | |
| 21 | Example: |
| 22 | adduser myuser adm |
| 23 | chgrp adm /etc/samba/smb.conf |
| 24 | chmod g+w /etc/samba/smb.conf |
| 25 | }}} |