Ubuntu 14.10 - Modifying .conf file

  • Thread starter Thread starter StevieTNZ
  • Start date Start date
  • Tags Tags
    File Ubuntu
Click For Summary

Discussion Overview

The discussion revolves around modifying the smb.conf file in Ubuntu 14.10 to connect to a Windows Workgroup. It includes troubleshooting permission issues and service management related to Samba.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • Stevie reports being unable to save changes to the smb.conf file due to permission issues, despite being logged in as a user created during installation.
  • One participant suggests logging in as root to gain the necessary permissions.
  • Matterwave recommends using 'sudo gedit' to edit the file, which allows Stevie to open it but results in multiple Gtk warnings related to the session manager.
  • Stevie encounters issues restarting the Samba service, with commands returning 'unrecognized service' or 'command not found'.
  • Stevie later confirms success in getting the service running after checking an external link for guidance.

Areas of Agreement / Disagreement

The discussion includes multiple approaches to resolving the permission and service management issues, with no consensus on the best method as participants provide different suggestions and experiences.

Contextual Notes

Stevie's initial attempts to modify the smb.conf file and restart the Samba service were hindered by permission errors and command issues, indicating possible dependencies on system configurations or user roles.

StevieTNZ
Messages
1,944
Reaction score
837
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.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
Replies
38
Views
5K
Replies
10
Views
3K
Replies
2
Views
3K
  • · Replies 24 ·
Replies
24
Views
11K
Replies
2
Views
6K
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 12 ·
Replies
12
Views
8K
  • · Replies 8 ·
Replies
8
Views
3K