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
Solved

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

Posted on 2011-03-22
11
800 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
  • 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

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" …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 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