Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 47946  / 3 Years ago, tue, september 14, 2021, 4:53:47

How to install SWAT (Samba Web Administration Tool) in 12.04


More From » samba

 Answers
2

In a terminal write:



sudo apt-get install samba smbfs samba-doc swat xinetd


Enable service SWAT in /etc/xinetd.conf and restart with the new configuration by the following:



sudo update-inetd --enable 'swat'

sudo dpkg-reconfigure xinetd


Create new configuration file /etc/xinetd.d/swat:



sudo cat > /etc/xinetd.d/swat <<-EOF

service swat
{
port = 901
socket_type = stream
wait = no
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
EOF


Change the permissions smb.conf to group administrator (adm).



use chmod and chgrp tools to change the file access permissions and group permissions respectively:



sudo chmod g+w /etc/samba/smb.conf

sudo chgrp adm /etc/samba/smb.conf


Restart service xinetd with following command:



sudo service xinetd restart


open your web browser and access http://samba_server:[port]. default port: 901



If successful, you will be presented with a dialog box asking for username and password.



enter image description here



Use the username and a password from the admin group to log in, and you’ll have access to SWAT.



enter image description here


[#35152] Wednesday, September 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lasagnerhead

Total Points: 487
Total Questions: 105
Total Answers: 122

Location: French Southern and Antarctic Lands
Member since Sun, May 3, 2020
4 Years ago
;