Solved

Fedora / Samba - n00b  - How to edit the smb.conf  (samba config file)

Posted on 2011-03-22
11
804 Views
Last Modified: 2012-05-11

Is there a way to edit it.

Is there a friendly editor I can install rather than the some  black unfriendly screen I used last week?
0
Comment
Question by:fcek
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
11 Comments
 
LVL 3

Expert Comment

by:thebruno
ID: 35193760
sudo apt-get install gedit

sudo gedit smb.conf
0
 
LVL 3

Expert Comment

by:thebruno
ID: 35193773
sorry,

...
sudo gedit /etc/smb/smb.conf
0
 

Author Comment

by:fcek
ID: 35193898

[ed@server1 ~]$ sudo gedit /etc/smb/smb.conf

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for ed:
ed is not in the sudoers file.  This incident will be reported.
[ed@server1 ~]$


0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:fcek
ID: 35193927


Will I just run that command from # ?
0
 
LVL 3

Expert Comment

by:thebruno
ID: 35193958
yes you can run it from the #(root) prompt.

0
 
LVL 3

Expert Comment

by:thebruno
ID: 35193959
without 'sudo'
0
 

Author Comment

by:fcek
ID: 35194008

Hi, It think the directory its in is "samba" but my chage didnt work anyway


gedit /etc/samba/smb.conf


[root@server1 ed]# gedit /etc/smb/smb.conf

(gedit:2707): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

**
GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
Aborted (core dumped)
[root@server1 ed]# gedit /etc/samba/smb.conf

(gedit:2718): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

**
GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
Aborted (core dumped)
[root@server1 ed]#
0
 

Author Comment

by:fcek
ID: 35194027


A mate wrote up this by hand and I used a GUI.

Now that I want to change one letter he typed wrong ........ mast to mask
Samba warning - 351: create mast = 770

I cant do it.

Its so frustrating ........

Was hoping to get rolling with some CLI in there to make shares etc and as usual Im stumped.
0
 

Author Comment

by:fcek
ID: 35194284
0
 

Author Comment

by:fcek
ID: 35194292


If you concur ........ post back the same link -
0
 
LVL 5

Accepted Solution

by:
tsmgeek earned 500 total points
ID: 35194429
i personaly use VIM to edit the config file directly as its easier then reload smb, but if you want a nice simple GUI then Webmin is a good tool for admin of many nix services
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question