Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th March 2006, 20:23
noahlau noahlau is offline
Junior Member
 
Join Date: Mar 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Roaming Profile Error with Samba Domain Controller Setup

I've most recently configured a Samba PDC with version 5.10. I followed each step. however, i got some problems

here is my smb.conf:
Quote:
[global]
workgroup = MYWORKGROUP
netbios name = DEBIAN
server string = %h server (Samba, Ubuntu)


passdb backend = tdbsam
security = user
username map = /etc/samba/smbusers
name resolve order = wins bcast hosts
domain logons = yes
preferred master = yes
wins support = yes

# Set CUPS for printing
printcap name = CUPS
printing = CUPS

# Default logon
logon drive = H:
logon script = scripts/logon.bat
logon path = \\server1\profile\%U


# 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/usermod -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


# sync smb passwords woth linux passwords
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
passwd chat debug = yes
unix password sync = yes

# set the loglevel
log level = 3

[homes]
comment = Home
valid users = %S
read only = no
browsable = no


[printers]
comment = All Printers
path = /var/spool/samba
printable = yes
guest ok = yes
browsable = no


[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
admin users = Administrator
valid users = %U
read only = no


[profile]
comment = User profiles
path = /home/samba/profiles
valid users = %U
create mode = 0600
directory mode = 0700
writable = yes
browsable = no

[allusers]
comment = All Users
path = /home/shares/allusers
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writable = yes
1. I log on a win XP as a local admin then i upload a user's profile to /home/samba/profiles and rename the profile to "tom":

debian:/home/samba/profiles# ls -la
drwxrwx--x 13 root users 4096 2006-03-08 00:07 tom

I can successfully login from WinXP using the domain account "tom", but when I do, I get the following error, "Windows cannot locate the server copy of your roaming profile..."

2. i writed a logon script and i converted the file to the Windows format by using unix2dos, but the winxp workstation never execute it:

debian:/home/samba/netlogon/scripts# cat login.bat
net use P: \\DEBIAN\allusers

debian:/home/samba/netlogon/scripts# ls -al
total 12
drwxrwx--x 2 root users 4096 2006-03-08 00:36 .
drwxrwx--x 3 root users 4096 2006-03-08 00:36 ..
-rwxrwx--x 1 root users 30 2006-03-08 00:30 login.bat

Would you please kindly help ???

thank you so much !!!!
Reply With Quote
Sponsored Links
  #2  
Old 7th March 2006, 20:58
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Why did you copy the profile manually to the linux server. I'am not sure if the profile will work when you copy it manually. The better way is to let windows create the profile for you on the windows server after logging in as user tom.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 12th December 2006, 18:25
AboGassir AboGassir is offline
Junior Member
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think it is a security problem, in fact an ownership one.
Make sure that the owner of the profile folder AND ALL it's SUBCONTENTS is the same as the user who is logging in. And this also applies to the group.
Reply With Quote
  #4  
Old 5th March 2008, 11:32
karthick karthick is offline
Junior Member
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default samba

hi Experts ,

Im karthick ...


I wish favour from everyone. using samba can we restrict internet downloadin limit for every user.If it is possible can u say how.

If not how can we do that in linux.Is through proxy or something else.
can you kindly help me please ,...
Reply With Quote
  #5  
Old 6th March 2008, 19:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

Quote:
Originally Posted by karthick
using samba can we restrict internet downloadin limit for every user.If it is possible can u say how.
No. You can do this with a proxy like Squid.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 7th March 2008, 07:45
karthick karthick is offline
Junior Member
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
No. You can do this with a proxy like Squid.

Hi ,

Thanks ... Can u help me with that proxy. How can we do it. I have installed and configured squid2.5 and i tried with basic configuration here it is

http_port 3128
acl test src 192.168.1.0/255.255.255.0
http_access deny test
http_access allow local_host

when i did this config and started the server.The http is blocked and no sites are able to access.Can i do it to restrict access to particular site and how to set downloading limit. kindly pls help me...
Reply With Quote
  #7  
Old 8th March 2008, 19:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
 
Default

I'm no Squid expert, but there's a tutorial about a similar software that might help you: http://www.howtoforge.com/content-fi...roxy-safesquid
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
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
Roaming Profile Error with Samba Domain Controller Setup singe Installation/Configuration 1 14th April 2007 08:47
samba domain controller - ubuntu eoij1 HOWTO-Related Questions 3 6th October 2006 15:35
Samba as domain controller alex Suggest HOWTO 13 12th December 2005 15:00
samba perfect setup? anybody? einstein73 Installation/Configuration 2 11th December 2005 12:56
Attempting The Perfect Setup (To Some Extent) PsyVision HOWTO-Related Questions 3 3rd November 2005 12:50


All times are GMT +2. The time now is 08:39.


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