www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

networking Ubuntu Linux and windows together

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Linux and Networking
View previous topic :: View next topic  
Author Message
andrew_hall9



Joined: 27 Jun 2007
Posts: 1

PostPosted: Sat Jun 30, 2007 7:42 pm    Post subject: networking Ubuntu Linux and windows together Reply with quote

Hi friends, I need help networking Ubuntu Linux and windows together. I have installed samba on the Linux computer and I am sharing folders that are configured to windows sharing or something. I can see the Linux computer on my windows computer just fine but when I click on it says that I need a user name and password. I input my Linux accounts password but it didn't work and I input my xp computers password and that didn't work what should i do??
Back to top
View user's profile Send private message
saadakhtar



Joined: 27 Jun 2007
Posts: 33
Location: Mobile, AL

PostPosted: Mon Jul 02, 2007 7:41 pm    Post subject: Reply with quote

hi,
first make sure that you have both of these packages installed correctly

sudo apt-get install samba smbfs

The reason why you get a login box but none of your usernames work is that you have a unix account on the ubuntu machine but you have not added in a network user yet: Herez how to do that!

sudo smbpasswd -a yoursystemusername

where "yoursystemusername" will be the actual ubuntu system username
the above command will prompt you to enter a password and reenter it.
this will be your new samba password.

sudo nano /etc/samba/smbusers


where nano would be your favorite text editor.

in the new file "smbusers" insert the following line

yoursystemusername = "yournetworkusername"

where "yoursystemusername" will be the username you set the password for above and "yournetworkusername" would be the actual username you want to use to login for samba.

i usually keep it the same.
etc.....

admin = "admin"



save the edited file....

now we need to make sure that samba reads this new file for account credentials. for this we need to edit one more file.

first and most important. backup your samba configuration. to do that:

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup

and now we will edit the "smb.conf" file.

sudo nano /etc/samba/smb.conf

FIND THIS LINE:

; security = user


and replace it with


security = user
username map = /etc/samba/smbusers


make sure that you uncomment the "security = user" line or this will not work.


save the file and exit.
now we need to see a dump of our conf file to see if it looks ok

sudo testparm

this should show you a small output followed by a detailed summary of the smb.conf file.

Last but not least we need to restart samba for our changes to take effect.

sudo /etc/init.d/samba restart


ENJOY!!!!!
_________________
$@@D
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Linux and Networking All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group