Tuesday, May 31, 2011

Need help With SAmba in Linux?

I need help editing samba I am a newbe to Linux. Ubuntu is my distributor. I want to share files between a couple windows machines running xp and I want my Linux machine to be able to share printers and file between my windows machines. I can find and see the samba config file but i cant edit it. My xp computers can see the Linux machine but cant access it because it needs a user name and password. Thats why i want to be able to edit the config file for samba. Please I need step by step instructions on how to edit samba and change the config file so i can browse and write files to the linux computers.Need help With SAmba in Linux?
The first thing you need to know is that to edit Samba's .conf file you'll need ';root'; privileges (similar to Administrator privileges in Windows). Unlike in Windows, where you'd have to sign in as the Administrator, Ubuntu doesn't let you sign into the ';root'; user. What you need to do is use something the ';sudo'; command, which will let you run programs as if you're the root user. To do this, open up a terminal window (like a command window in Windows) and type in the following:



sudo gedit /full-path-of-the-conf-file-you-want-to-?br>


and then hit enter. It will prompt you for a password, just enter your standard user password. Now, if you've entered the password correctly a text editor will open that will allow you to edit the conf file as you'd like. When you're finished, save and close as you normally would, which will take you back to the terminal window. Close the window, reboot the computer, and voila, it should work the way you want it to.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.