Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
this is my first time with linux and i have just edited my smb.conf file, but now my only problem is how do i save. i read up that you use the cammand :x but that soesnt seem to work
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
first, have you edited the file as root? second, what editor did you use..i.e. pico, vi, emacs, ...etc., or a gui based editor...gedit,kedit, kwrite...etc.? will need more info to help, what distro are you running? what are you trying to accomplish w/samba? alittle more info will help. other than that i can offer a link to documentation on samba here.
i have logged in as root, and edited the smb.conf with the vi command. I am using red hat 9. What i want to try and do is firstly share files and folders, and secondly i gain access to the net via my xp box so i want linux to go live on the net through xp, if that makes sense. i hope this helps, ive spent a few days trying to get this working on my own, but....im just a baby to linux pls help
If you are editing with vi , you press the insert key to enable editing. When you are done editing, press the esc key to exit edit mode, then type: :wq! to Write , Quit and Commit changes.
To quit without saving, just type: :q!
[homes]
comment = Home Directories
#describes the folder
browseable = yes
#should be set to yes so that you can access it
#as a default folder
read only = no
#allows writing when applicable
and save it, i then go on to setup a user password
#smbpasswd -a <name>
it says :
params.c:OpenConfFile() - unable to open configuration file "/etc/samba/smb.conf": No such file or Directory
cant load /etc/samba/smb.conf - run testparm to debug it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.