Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th December 2005, 21:27
Dagur Dagur is offline
Junior Member
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
Reply With Quote
Sponsored Links
  #2  
Old 11th December 2005, 21:38
Dagur Dagur is offline
Junior Member
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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)
Reply With Quote
  #3  
Old 11th December 2005, 22:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
Default

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%
Reply With Quote
  #4  
Old 12th December 2005, 05:55
rbelk rbelk is offline
Junior Member
 
Join Date: Dec 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question

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?
Reply With Quote
  #5  
Old 12th December 2005, 09:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
Default

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.
Reply With Quote
  #6  
Old 12th December 2005, 12:39
rbelk rbelk is offline
Junior Member
 
Join Date: Dec 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question

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".
Reply With Quote
  #7  
Old 31st December 2005, 03:05
Dagur Dagur is offline
Junior Member
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!
Reply With Quote
  #8  
Old 31st December 2005, 13:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 31st December 2005, 13:22
Dagur Dagur is offline
Junior Member
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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).

Last edited by Dagur; 31st December 2005 at 13:24.
Reply With Quote
  #10  
Old 31st December 2005, 14:47
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
 
Default

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?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
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
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30
Ubuntu 5.04 Server Noob Problem jugo23 Installation/Configuration 1 14th October 2005 09:23


All times are GMT +2. The time now is 20:23.


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