Questions Tagged With sambahttp://linuxexchange.org/tags/samba/?type=rssquestions tagged <span class="tag">samba</span>enMon, 13 Apr 2015 03:06:42 -0400SAMBA PDC Roaming Profiles Issuehttp://linuxexchange.org/questions/3521/samba-pdc-roaming-profiles-issue<p>Hi all</p> <p>I am facing a problem.</p> <p>I have configured SAMBA PDC on RHEL 6. Everything is going very smooth. Users are being logged in properly &amp; their network drives (i-e; z: drives) are being shown. But either i login to Windows XP or Windows 7, user's profile does not get loaded. I get an error message, "You are logged in with a temporary profile". It would be so nice of you if anyone among you could guide me properly for how to resolve this issue.</p> <p>A swift response would be highly appreciated.</p> <p>Thanks/Regards</p> <p>THE CODE IS AS UNDER:</p> <p>[global] add group script = /usr/sbin/groupadd %g add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u add user script = /usr/sbin/useradd -m %u add user to group script = /usr/sbin/groupmod -G %g %u cups options = raw delete user script = /usr/sbin/userdel -r %u</p> <pre><code> dns proxy = no domain logons = yes domain master = yes hosts allow = x.x. idmap gid = 15000-25000 idmap uid = 15000-25000 log file = /var/log/samba/%m.log logon drive = z: logon home = \\%L\%U logon path = \\%L\profiles\%U logon script = logon.bat max log size = 50 netbios name = abc os level = 65 passdb backend = tdbsam passwd chat = *New*Unix*Password* %n\n *ReType*new*Unix*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* passwd program = /usr/bin/passwd %u preferred master = yes printcap name = cups printing = cups security = user server string = abc Samba Server socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 time server = yes unix password sync = no workgroup = abc </code></pre> <p>[homes] comment = Home Directories valid users = %U browseable = no read only = no</p> <h1>valid users = %s</h1> <p>[netlogon] comment = Network Logon Services path = /var/lib/samba/netlogon browseable = no guest ok = yes admin users = root</p> <p>[profiles] comment = Roaming Profiles path = /home/samba/profiles browseable = no read only = no writable = yes</p> <p>[printers] comment = All Printers path = /var/spool/samba browseable = no printable = yes create mask = 0600 guest ok = yes</p> <p>[print$] comment = Printer Drivers Share path = /var/lib/samba/drivers write list = root</p> <p>[public] comment = Public Stuff path = /home/samba/public read only = no public = yes create mask = 0777 directory mask = 0777</p> <p>[WingLvlShare] comment = Wing Level Sharing path = /home/samba/wing-level read only = no writable = yes public = no create mask = 0770 directory mask = 0770</p>Yawar_AzizMon, 13 Apr 2015 03:06:42 -0400http://linuxexchange.org/questions/3521/samba-pdc-roaming-profiles-issuesambasecure automatic connection to MS-Windows file share (cifs)http://linuxexchange.org/questions/2793/secure-automatic-connection-to-ms-windows-file-share-cifs<p>I can mount a windows file share with <code>sudo mount -t cifs -o credentials=~/Files/server-mount/credentials //sbs2008/local ~/Files/server-mount/</code>. I would like to do this but:</p> <ul> <li><strike>Without root privileges.</strike> (I can do this one, if I solve the other two.)</li> <li>Without storing password, unencrypted.</li> <li>Automatically on login.</li> </ul> <p>I am using kubuntu 11.10</p>daves dadWed, 29 Feb 2012 09:05:12 -0500http://linuxexchange.org/questions/2793/secure-automatic-connection-to-ms-windows-file-share-cifswindowssambacifsfilesystemSAMBA messages keep repeating in /var/log/messages????http://linuxexchange.org/questions/2297/samba-messages-keep-repeating-in-varlogmessages<p>I have seen the below messages keep repeating in the /var/log/messages since very long time.. any one can help how to identify the reason of these messages and how to stop them? I appreciate your help</p> <pre><code> Apr 10 09:55:35 3D:myaltix nmbd[27640]: become_domain_master_browser_bcast: Apr 10 09:55:35 3D:myaltix nmbd[27640]: Attempting to become domain master browser on workgroup KHL on subnet 10.10.30.160 Apr 10 09:55:35 3D:myaltix nmbd[27640]: [2011/04/10 09:55:35, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(295) Apr 10 09:55:35 3D:myaltix nmbd[27640]: become_domain_master_browser_bcast: querying subnet 10.10.30.160 for domain master browser on workgroup KHL Apr 10 09:55:35 3D:myaltix nmbd[27640]: [2011/04/10 09:55:35, 0] nmbd/nmbd_become_dmb.c:become_domain_master_query_success(225) Apr 10 09:55:35 3D:myaltix nmbd[27640]: become_domain_master_query_success: Apr 10 09:55:35 3D:myaltix nmbd[27640]: There is already a domain master browser at IP 10.10.30.150 for workgroup KHL registered on subnet 10.10.30.160.</code></pre> <p>How to format a reply( what i noticed when i edit i can see good file format, but after saving the changes, i will see anymore <br> </p>khalilhlSun, 10 Apr 2011 03:41:51 -0400http://linuxexchange.org/questions/2297/samba-messages-keep-repeating-in-varlogmessagessambalinux Samba user how to login to windows machinehttp://linuxexchange.org/questions/841/linux-samba-user-how-to-login-to-windows-machine<p>i was configured the samba server in linux but i want to login as a samba user in windows XP machine how to do this?</p>SureshrhceFri, 11 Jun 2010 19:51:29 -0400http://linuxexchange.org/questions/841/linux-samba-user-how-to-login-to-windows-machinesambaStrange problems accessing smb share from Ubuntu machinehttp://linuxexchange.org/questions/703/strange-problems-accessing-smb-share-from-ubuntu-machine<p>I am running Ubuntu 10.04 connecting to a samba server (version 3.0.33-3.28.el5) running on CentOS. Right now I'm experiencing strange problems accessing the server via smb. </p> <p>Issue 1: After upgrading CentOS from 5.4 to 5.5, I'm encountering errors on the samba server when editing files on the home directory from my Ubuntu machine. The home directory is mounted via fstab. The file will still open and close but only after a long delay. The strange thing is that these errors occur when editing on the home share but not on the other shares.</p> <p>Error log on samba server:<br> May 24 16:39:03 mango smbd[15325]: [2010/05/24 16:39:03, 0] smbd/trans2.c:unix_filetype(1011)<br> May 24 16:39:24 mango smbd[15325]: unix_filetype: unknown filetype 448unix_filetype: unknown filetype 448unix_filetype: unknown filetype 448unix_filetype: unknown filetype 448192.168.1.100 (192.168.1.100) closed connection to service rickyw</p> <p>smb.conf configuation on server:<br> [homes]<br> comment = Home Directories<br> path = /home/%u/documents<br> veto files = /<em>.cmd/</em>.com/<em>.exe/</em>.msi/<em>.pif/</em>.sys/autorun.inf/<br> delete veto files = yes<br> browseable = no<br> writable = yes</p> <p>fstab entry on Ubuntu PC:<br> //mango/rickyw /media/mango-rickyw cifs auto,credentials=/home/rickyw/.smbpasswd 0 0</p> <p>Issue 2: When I mount shares via nautilus, I am not able to open openoffice.org files. Instead, the files are opened with file roller showing an empty list. I am able to open the files if they are located on local drives or shares mounted via fstab.</p> <p>Running Fedora 13 from VirtualBox in Ubuntu, there were no issues or errors at all. Any idea where I should look at? What do the errors mean?</p>Ricky WeeTue, 25 May 2010 08:01:19 -0400http://linuxexchange.org/questions/703/strange-problems-accessing-smb-share-from-ubuntu-machinesambaConnect via SSH/Samba from 1 box to a hidden box (NAT/PAT?) setup?http://linuxexchange.org/questions/145/connect-via-sshsamba-from-1-box-to-a-hidden-box-natpat-setup<p>I need to access a Linux box via SSH &amp; Samba that is hidden/connected behind another one.</p> <p>Setup :-</p> <pre> A switch B C |----| |---| |----| |----| |eth0|----| |----|eth0| | | |----| |---| |eth1|----|eth1| |----| |----| </pre> <p>Eg, SSH/Samba from A to C</p> <p>How does one go about this?<br> I was thinking that it cannot be done via IP alone? Or can it?</p> <p>Could B say "hi on eth0, if your looking for 192.168.0.2, its here on eth1"?<br> Is this NAT? This is a large private network, so what about if another PC has that IP?!</p> <p>More likely it would be PAT?<br> A would say "hi 192.168.109.15:1234"<br> B would say "hi on eth0, traffic for port 1234 goes on here eth1"<br> How could that be done? </p> <p>And would the SSH/Samba demons see the correct packet header info and work??</p> <p>IP info :-</p> <pre> A - eth0 - 192.168.109.2 B - eth0 - 192.168.109.15 - eth1 - 192.168.0.1 C - eth1 - 192.168.0.2 </pre> <p>A, B &amp; C are RHEL (RedHat) But Windows computers can be connected to the switch. I configured the 192.168.0.* IPs, they are changeable.</p> <p>Any help?</p>Ian VaughanWed, 28 Apr 2010 17:02:58 -0400http://linuxexchange.org/questions/145/connect-via-sshsamba-from-1-box-to-a-hidden-box-natpat-setupsshsambanatpatnetworking