Ubuntu 14.10 - Modifying .conf file

  • Thread starter Thread starter StevieTNZ
  • Start date Start date
  • Tags Tags
    File Ubuntu
AI Thread Summary
To connect an Ubuntu 14.10 installation to a Windows Workgroup, Samba must be configured correctly. The user faced permission issues when attempting to edit the smb.conf file located in /etc/samba. The solution involved using the command "sudo gedit" to gain the necessary permissions for editing the file. However, warnings related to the Gnome Session Manager appeared during this process. After editing, the user encountered issues restarting the Samba service, with commands like "sudo service samba restart" and "sudo /etc/init.d/smbd restart" returning errors indicating that the service was unrecognized or the command was not found. Ultimately, the user was able to resolve the service issue by following a guide, confirming that the Samba service was operational. Further questions were anticipated as the user continued troubleshooting.
StevieTNZ
Messages
1,934
Reaction score
873
Hi there

I installed the latest version of Ubuntu (14.10) onto an old desktop, and am trying to make it connect to the Workgroup all other computers in the house are on.

I installed Samba as per the instructions here - http://www.techrepublic.com/blog/linux-and-open-source/how-to-join-ubuntu-to-a-windows-workgroup/ - and found the file smb.conf in the directory /etc/samba. I opened the file in gedit, and modified the code. However when trying to save the file I get the message 'You do not have the permissions necessarily to save the file.'

I close the file without saving, right click on the file and see what permissions I can edit. However they're all 'locked' with a note at the bottom of the screen 'You are not the owner, so you cannot change these permissions.' How can I edit smb.conf, save it and get Linux to join the Workgroup?

NB: I'm logged in as the user I created during the installation of 14.10.

Any help much appreciated
Stevie
 
Computer science news on Phys.org
Can't you log in as a root?
 
Matterwave suggested running sudo gedit in the terminal, which did enable me to edit the file.

However the following appeared in the terminal, and when I tried to restart the service and file this is what I got:
stevie@LinuxServer:~$ sudo gedit
[sudo] password for stevie:

(gedit:3634): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(gedit:3634): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(gedit:3634): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(gedit:3634): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
stevie@LinuxServer:~$ sudo service samba restart
samba: unrecognized service
stevie@LinuxServer:~$ sudo /etc/init.d/smbd restart
sudo: /etc/init.d/smbd: command not found

I also tried sudo /etc/init.d.smb restart, but got 'command not found' also.
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top