Fedora Linux Support Community & Resources Center
  #1  
Old 8th December 2005, 11:42 PM
faustozabdi
Guest
 
Posts: n/a
how to save smb.conf

after yo make changes on smb.conf, how do you save them because i don't see any save options.
Reply With Quote
  #2  
Old 9th December 2005, 12:29 AM
hiberphoptik Offline
Registered User
 
Join Date: Apr 2004
Posts: 1,186
just like with any operating system and with any application it depends on what you are using to make the edits with.

first of all you wont be able to save the changes if you are not root

so that being said if you are root and using:

vi - esc :wq
gedit - file save
nano - ctrl-x y enter
pico - ctrl-x y enter


etc etc....

I beleive there is a smb config GUI included with FC4 also
Reply With Quote
  #3  
Old 9th December 2005, 12:40 AM
faustozabdi
Guest
 
Posts: n/a
i use vi, vi smb.conf, make changes, now i want to save them, how do i do that?
Reply With Quote
  #4  
Old 9th December 2005, 05:24 PM
Vito_Corleone Offline
Registered User
 
Join Date: Nov 2004
Posts: 45
He just told you in his post.
Reply With Quote
  #5  
Old 9th December 2005, 06:48 PM
pparks1 Offline
Registered User
 
Join Date: Mar 2004
Location: Westland, Michigan
Age: 40
Posts: 2,317
With vi, you get out of Insert mode by pressing the Escape key.

Then hit :wq You litterally hit colon to get on command line at bottom of vi and then issue the w key to write and the q key to quit.

So, it's esc :wq
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself

My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
Reply With Quote
  #6  
Old 11th December 2005, 06:16 PM
mikeyman Offline
Registered User
 
Join Date: Jun 2004
Posts: 7
Hey...you have to be root to save /etc/samba/smb.conf. I find VI a bit of a challenge, but it is on every *nix known to mankind, so it is good to know. Man vi and you will be able to see more options. Personally, I like the esc ZZ option. Escape gets you out of the write/edit mode and ZZ saves the file and exits vi. Be sure restart the service (service smb restart or /etc/init.d/smb restart) to put your changes in effect immediatley. Also, testparm is a good tool to see if your syntax is correct on the smb.conf file.
Reply With Quote
Reply

Tags
save, smbconf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
resolv.conf ignores hosts file. host.conf is correct mlee07946 Servers & Networking 2 17th September 2013 08:37 PM
xorg.conf won't 'save' mick Hardware & Laptops 6 8th March 2009 09:10 AM
file type of /etc/yum.conf and yumex.profiles.conf? Zigzagcom Security and Privacy 2 25th May 2006 05:39 AM
Unable to save changes to grub.conf lesliek Installation, Upgrades and Live Media 7 6th March 2005 03:57 PM


Current GMT-time: 11:44 (Thursday, 23-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Gisenyi Photos - Hailar Photos - Arlon Travel Photos on Instagram