I needed to set the workgroup in my samba server so the other computers on my localnet can see the Kubuntu system.
I poked around for GUI to do it, but couldn't find one, so I searched for for the samba directory (/usr/share/samba), did a backup (sudo cp smb.conf smb.conf.bku), opened smb.conf with sudo vi smb.conf, changed the workgroup, tried to save ( <esc> :wq ) but was told the file was write-protected. Checked the file permissions (644 - shouldn't sudo vi have let me edit and save the file?), did a sudo chmod 666, reopened the file in vi, changed the workgroup, saved the file and sudo chmod back to 644.
So far, so good. Now to restart samba. Googled for some help and everybody (half a dozen sites) seemed to agree that sudo /etc/init.d/samba restart would do the trick. Not...
Instead I get the following message:
sudo: /etc/init.d/samba: command not found
Back to Google, but no help. One site said to reboot the computer. GAAACK! That smacks too much of XP hell.
Anyway, it's late and I'm hanging it up for tonight. I would appreciate any advice about what's going on.
Regards and tia, John Kinney
I poked around for GUI to do it, but couldn't find one, so I searched for for the samba directory (/usr/share/samba), did a backup (sudo cp smb.conf smb.conf.bku), opened smb.conf with sudo vi smb.conf, changed the workgroup, tried to save ( <esc> :wq ) but was told the file was write-protected. Checked the file permissions (644 - shouldn't sudo vi have let me edit and save the file?), did a sudo chmod 666, reopened the file in vi, changed the workgroup, saved the file and sudo chmod back to 644.
So far, so good. Now to restart samba. Googled for some help and everybody (half a dozen sites) seemed to agree that sudo /etc/init.d/samba restart would do the trick. Not...
Instead I get the following message:
sudo: /etc/init.d/samba: command not found
Back to Google, but no help. One site said to reboot the computer. GAAACK! That smacks too much of XP hell.
Anyway, it's late and I'm hanging it up for tonight. I would appreciate any advice about what's going on.
Regards and tia, John Kinney
Comment