HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   SAMBA (Domaincontroller) Server For Small Workgroups With Ubuntu 5.10 (http://www.howtoforge.com/forums/showthread.php?t=1636)

Dagur 11th December 2005 22:27

SAMBA (Domaincontroller) Server For Small Workgroups With Ubuntu 5.10
 
Hi,

I went through the howto and I can see my server in windows but I can't access it. I get "The network path was not found" error. Any help?

Dagur 11th December 2005 22:38

oh and when I try it from an ubuntu computer I get a timeout.
There's no firewall set up on the server machine (yet)

till 11th December 2005 23:48

Have a look in the logs under /var/log/samba and the syslog for errors.

Have you entered the network name + IP of the server and the workstation(s) in the hosts file of your Samba server?

What output do you get when you run this command as root on your samba server:

smbclient -L localhost -U%

rbelk 12th December 2005 06:55

I am having a different error. When I try to connect the the domain I get the following error on my Windows PC.

The following error occurred attempting to join the domain "HOME":
Logon Failure: unknown user name or password.

Don't you have to add accounts for the windows pc's also for domain logons to work?

till 12th December 2005 10:30

Quote:

Originally Posted by rbelk
I am having a different error. When I try to connect the the domain I get the following error on my Windows PC.

The following error occurred attempting to join the domain "HOME":
Logon Failure: unknown user name or password.

You have to add an user account first (for the user, not the machine). It is decribed on this page at the top:

http://www.howtoforge.com/samba_setup_ubuntu_5.10_p5

Quote:

Don't you have to add accounts for the windows pc's also for domain logons to work?
No, not manually. If you join the domain with a windows PC, the machine account is created automatically by the add machine script defined in the samba.conf.

rbelk 12th December 2005 13:39

I copied this from the howto

# Useradd scripts
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usernod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false/ -d /var/lib/nobody %u
idmap uid = 15000-20000
idmap gid = 15000-20000

Is the bold line correct? I don't have a command "/usr/sbin/usernod".

Dagur 31st December 2005 04:05

So I got everything to work. I can read/write in windows but I can only get read-only access in linux. I've tried changing the config but it doesn't seem to change anything. The files are marked as if they have root:root ownership.

Help! :(

till 31st December 2005 14:11

What do you mean with read only access from linux? The howto is for anabling Windows workstations to store their data on the samba server, its not an NFS howto for connecting linux workstations to the server.

If your files are marked as root:root owner, then you used the wrong user in windows. You will have to create a new linux + samba user, the connect with this username and password from windows. Not with the Administrator user. The Administrator is the root user on linux, it is only used in the process of adding your workstation to the domain to authorize you once as admin.

Dagur 31st December 2005 14:22

I'm not sure you understand.

I have both linux and windows computers connecting to the samba server. Like I said everything works fine on the windows computer (read+write, and i do login as a samba user) but on my linux computer I can only read (unless I use sudo).

till 31st December 2005 15:47

This looks more like a problem on your linux workstation. Which user do you sue to connect from your linux worksattion and wich program / command do you use, smbmount?


All times are GMT +2. The time now is 01:10.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.