Re: [Samba] Newly created files/folders showing up only if I change folders and come back

2010-10-12 Thread Dnk
 Is this by chance a windows 7 client? It has a bug where the view does not 
 refresh. Pressing F5 usually makes it show right away. This is usually due to 
 a cache db being corrupt on win7. I can't remember off hand (walking down the 
 street without my book marks) what it is called. 
 
 Pretty sure a little googling with the above info should turn it up. If this 
 is in fact the same issue. 
 
 
 ---
 Dnk
 
 On 2010-10-12, at 10:58, Keun Song keunhos...@hotmail.com wrote:
 
 
 
 
 I've noticed some weird behavior as below.
 
 
 - I created a new folder from my Windows desktop in a Samba server's folder.
 
 - Then, the new folder does not show up.
 
 - If I go to another folder and come back to the folder in which I created 
 that new sub-folder, then it shows up.
 
 
 Wondering if it has anything to do with my Samba version, a smb.conf 
 configuration, or a chmod permission.
 
 
 Thanks in advance!
 
 
 
 - Kevin
 
 
   
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Can only see files one level deep

2010-06-18 Thread DNK
I installed the update (os x 10.6.4) as it was released, and no go. I still 
have the same issue. I have been still fighting with this issue.

D


On 2010-06-15, at 4:26 AM, William P.N. Smith wrote:

 It's difficult to parse, but it _seems_ like the 10.6.4 update to OSX will 
 incorporate some SMB changes (fixes?), so maybe it's an OSX problem, and 
 might be Fixed In The Next Release.
 
 I don't really care for beta software, but I kinda wish I could get this one!
 
 
 
 On 6/15/10 12:18 AM, Dnk wrote:
 That is also essentially what I am experiencing.
 
 
 Regards,
 
 D
 
 On 2010-06-14, at 6:10 PM, William P.N. Smith
 w_sm...@compusmiths.com wrote:
 
 I'm having a problem that I'm not sure is related. OSX 10.6.3, Centos
 5.5, Samba Version 3.0.33-3.28.el5
 
 Sometimes when I try to browse to a directory it just stalls out with
 the spinning gear. Not always the top level or a consistent depth, and
 it doesn't seem to matter if there are a dozen files or thousands in
 the directory. Sometimes if I walk away for an hour or so it'll still
 be spinning when I get back, sometimes it'll finally be showing my
 directory listing.
 
 I've just discovered(?) that quitting the Finder and restarting it
 solved the problem in at least one instance, so try that and report
 back...
 
 [I'm running iptables, and can't disable it, FWIW.]
 
 
 
 On 6/13/10 3:36 AM, zoolook wrote:
 2010/6/4 DNKd.k.emailli...@gmail.com:
 Just bumping this one back onto the radar. I still have not been
 able to fix the issue.
 
 Hello,
 
 I got a Macbook Pro last week so I was able to test your smb.conf in a
 VM running centos 5.5.
 
 It turned out that I have to disable iptables and selinux
 (system-config-securitylevel-tui) to make samba run on centos. I'm a
 debian/ubuntu guy and sure there's a better way; anyway, for testing,
 disabling is ok.
 
 After that, your smb.conf run flawless here; except for this line in
 [myshare]:
 
 users = @ myshare
 
 I really hope that space between @ and myshare is a typo in your
 email and not in your actual smb.conf.
 
 I'll keep the VM for a few days, just in case you want me to run some
 more tests.
 
 Best regards,
 Norberto
 
 --
 To unsubscribe from this list go to the following URL and read the
 instructions: https://lists.samba.org/mailman/options/samba
 
 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Can only see files one level deep

2010-06-18 Thread DNK
I still in fact have the original issue where it just beach balls, and I have 
to relaunch the finder each time I want to go into a subdirectory.

D


On 2010-06-18, at 7:54 AM, William P.N. Smith wrote:

 Seems to be better for me, but that doesn't mean:
 
 1) I've got the same problem as DNK
 
 2) I haven't seen it show up yet.
 
 I dunno if there's any debugging you can turn on without using something like 
 wireshark to trap all your traffic and parse it from there.
 
 I've got directories with tens of thousands of files in them, so I can't 
 always tell if it's slow because it's iterating thru all the files or because 
 there's something strange going on...
 
 Willie
 
 
 On 6/18/10 10:38 AM, DNK wrote:
 I installed the update (os x 10.6.4) as it was released, and no go. I still 
 have the same issue. I have been still fighting with this issue.
 
 D
 
 
 On 2010-06-15, at 4:26 AM, William P.N. Smith wrote:
 
 It's difficult to parse, but it _seems_ like the 10.6.4 update to OSX will 
 incorporate some SMB changes (fixes?), so maybe it's an OSX problem, and 
 might be Fixed In The Next Release.
 
 I don't really care for beta software, but I kinda wish I could get this 
 one!
 
 
 
 On 6/15/10 12:18 AM, Dnk wrote:
 That is also essentially what I am experiencing.
 
 
 Regards,
 
 D
 
 On 2010-06-14, at 6:10 PM, William P.N. Smith
 w_sm...@compusmiths.com  wrote:
 
 I'm having a problem that I'm not sure is related. OSX 10.6.3, Centos
 5.5, Samba Version 3.0.33-3.28.el5
 
 Sometimes when I try to browse to a directory it just stalls out with
 the spinning gear. Not always the top level or a consistent depth, and
 it doesn't seem to matter if there are a dozen files or thousands in
 the directory. Sometimes if I walk away for an hour or so it'll still
 be spinning when I get back, sometimes it'll finally be showing my
 directory listing.
 
 I've just discovered(?) that quitting the Finder and restarting it
 solved the problem in at least one instance, so try that and report
 back...
 
 [I'm running iptables, and can't disable it, FWIW.]
 
 
 
 On 6/13/10 3:36 AM, zoolook wrote:
 2010/6/4 DNKd.k.emailli...@gmail.com:
 Just bumping this one back onto the radar. I still have not been
 able to fix the issue.
 
 Hello,
 
 I got a Macbook Pro last week so I was able to test your smb.conf in a
 VM running centos 5.5.
 
 It turned out that I have to disable iptables and selinux
 (system-config-securitylevel-tui) to make samba run on centos. I'm a
 debian/ubuntu guy and sure there's a better way; anyway, for testing,
 disabling is ok.
 
 After that, your smb.conf run flawless here; except for this line in
 [myshare]:
 
 users = @ myshare
 
 I really hope that space between @ and myshare is a typo in your
 email and not in your actual smb.conf.
 
 I'll keep the VM for a few days, just in case you want me to run some
 more tests.
 
 Best regards,
 Norberto
 
 --
 To unsubscribe from this list go to the following URL and read the
 instructions: https://lists.samba.org/mailman/options/samba
 
 
 
 
 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Can only see files one level deep

2010-06-18 Thread DNK
I solved it! (For me). Pulled from here.

http://www.macwindows.com/snowleopard-filesharing.html#050310a


The veto files line for my share in /etc/samba/smb.conf includes the file 
.DS_Store. For Mac clients accessing the share using SMB instead of AFP, the 
.DS_Store file needs to be accessible and writable, otherwise the Finder will 
hang trying to create it. Hope this helps!

I commented out the following line in my smb.conf:

#veto files = /.DS_Store/._.*/DesktopFolderDB/Network Trash 
Folder/resource.frk/TheFindByContentFolder/TheVolumeSettingsFolder/

And now it works. The above line used to not be an issue, but is now!

Either way, solved for me.

D




On 2010-06-18, at 7:54 AM, William P.N. Smith wrote:

 Seems to be better for me, but that doesn't mean:
 
 1) I've got the same problem as DNK
 
 2) I haven't seen it show up yet.
 
 I dunno if there's any debugging you can turn on without using something like 
 wireshark to trap all your traffic and parse it from there.
 
 I've got directories with tens of thousands of files in them, so I can't 
 always tell if it's slow because it's iterating thru all the files or because 
 there's something strange going on...
 
 Willie
 
 
 On 6/18/10 10:38 AM, DNK wrote:
 I installed the update (os x 10.6.4) as it was released, and no go. I still 
 have the same issue. I have been still fighting with this issue.
 
 D
 
 
 On 2010-06-15, at 4:26 AM, William P.N. Smith wrote:
 
 It's difficult to parse, but it _seems_ like the 10.6.4 update to OSX will 
 incorporate some SMB changes (fixes?), so maybe it's an OSX problem, and 
 might be Fixed In The Next Release.
 
 I don't really care for beta software, but I kinda wish I could get this 
 one!
 
 
 
 On 6/15/10 12:18 AM, Dnk wrote:
 That is also essentially what I am experiencing.
 
 
 Regards,
 
 D
 
 On 2010-06-14, at 6:10 PM, William P.N. Smith
 w_sm...@compusmiths.com  wrote:
 
 I'm having a problem that I'm not sure is related. OSX 10.6.3, Centos
 5.5, Samba Version 3.0.33-3.28.el5
 
 Sometimes when I try to browse to a directory it just stalls out with
 the spinning gear. Not always the top level or a consistent depth, and
 it doesn't seem to matter if there are a dozen files or thousands in
 the directory. Sometimes if I walk away for an hour or so it'll still
 be spinning when I get back, sometimes it'll finally be showing my
 directory listing.
 
 I've just discovered(?) that quitting the Finder and restarting it
 solved the problem in at least one instance, so try that and report
 back...
 
 [I'm running iptables, and can't disable it, FWIW.]
 
 
 
 On 6/13/10 3:36 AM, zoolook wrote:
 2010/6/4 DNKd.k.emailli...@gmail.com:
 Just bumping this one back onto the radar. I still have not been
 able to fix the issue.
 
 Hello,
 
 I got a Macbook Pro last week so I was able to test your smb.conf in a
 VM running centos 5.5.
 
 It turned out that I have to disable iptables and selinux
 (system-config-securitylevel-tui) to make samba run on centos. I'm a
 debian/ubuntu guy and sure there's a better way; anyway, for testing,
 disabling is ok.
 
 After that, your smb.conf run flawless here; except for this line in
 [myshare]:
 
 users = @ myshare
 
 I really hope that space between @ and myshare is a typo in your
 email and not in your actual smb.conf.
 
 I'll keep the VM for a few days, just in case you want me to run some
 more tests.
 
 Best regards,
 Norberto
 
 --
 To unsubscribe from this list go to the following URL and read the
 instructions: https://lists.samba.org/mailman/options/samba
 
 
 
 
 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Can only see files one level deep

2010-06-14 Thread Dnk
I had confirmed, but I have no firewall, or selinux running. I never  
have. This setup used to work. And I am also confirming that there is  
no space inmy share group in my config.



Regards,

D

On 2010-06-13, at 12:36 AM, zoolook nbe...@gmail.com wrote:


2010/6/4 DNK d.k.emailli...@gmail.com:
Just bumping this one back onto the radar. I still have not been  
able to fix the issue.


Hello,

I got a Macbook Pro last week so I was able to test your smb.conf in a
VM running centos 5.5.

It turned out that I have to disable iptables and selinux
(system-config-securitylevel-tui) to make samba run on centos. I'm a
debian/ubuntu guy and sure there's a better way; anyway, for testing,
disabling is ok.

After that, your smb.conf run flawless here; except for this line in  
[myshare]:


   users = @ myshare

I really hope that space between @ and myshare is a typo in your
email and not in your actual smb.conf.

I'll keep the VM for a few days, just in case you want me to run some
more tests.

Best regards,
Norberto

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Can only see files one level deep

2010-06-14 Thread Dnk

That is also essentially what I am experiencing.


Regards,

D

On 2010-06-14, at 6:10 PM, William P.N. Smith  
w_sm...@compusmiths.com wrote:


I'm having a problem that I'm not sure is related.  OSX 10.6.3,  
Centos 5.5, Samba Version 3.0.33-3.28.el5


Sometimes when I try to browse to a directory it just stalls out  
with the spinning gear.  Not always the top level or a consistent  
depth, and it doesn't seem to matter if there are a dozen files or  
thousands in the directory.  Sometimes if I walk away for an hour or  
so it'll still be spinning when I get back, sometimes it'll finally  
be showing my directory listing.


I've just discovered(?) that quitting the Finder and restarting it  
solved the problem in at least one instance, so try that and report  
back...


[I'm running iptables, and can't disable it, FWIW.]



On 6/13/10 3:36 AM, zoolook wrote:

2010/6/4 DNKd.k.emailli...@gmail.com:
Just bumping this one back onto the radar. I still have not been  
able to fix the issue.


Hello,

I got a Macbook Pro last week so I was able to test your smb.conf  
in a

VM running centos 5.5.

It turned out that I have to disable iptables and selinux
(system-config-securitylevel-tui) to make samba run on centos. I'm a
debian/ubuntu guy and sure there's a better way; anyway, for testing,
disabling is ok.

After that, your smb.conf run flawless here; except for this line  
in [myshare]:


users = @ myshare

I really hope that space between @ and myshare is a typo in your
email and not in your actual smb.conf.

I'll keep the VM for a few days, just in case you want me to run some
more tests.

Best regards,
Norberto


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Can only see files one level deep

2010-06-04 Thread DNK
Just bumping this one back onto the radar. I still have not been able to fix 
the issue.

Thank you.

D


On 2010-05-31, at 2:53 PM, DNK wrote:

 Yes they are.
 
 I double checked that.
 
 D
 
 
 On 2010-05-31, at 2:49 PM, zoolook wrote:
 
 Are users members of myshare?
 
 
 El 31/05/2010 18:46, DNK d.k.emailli...@gmail.com escribió:
 
 Here we go...
 
 
 ls -ld /shares/myshare
 drwxrws--- 12 dnk myshare 4096 May 31 12:16 /shares/myshare
 
 ls -ld /shares/myshare/Docs/
 drwxrws--- 9 dnk myshare 4096 May 19 12:35 /shares/myshare/Docs/
 
 D
 
 
 On 2010-05-31, at 1:31 PM, zoolook wrote:
 
  2010/5/31 DNK d.k.emailli...@gmail.com:
  I don't ...
 
 
 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Can only see files one level deep

2010-05-31 Thread DNK
I don't think I posted back to the list, but this did not help anything. Are 
there any other suggestions? Would there be any value in backing up my config, 
and reinstalling samba?

D


On 2010-05-28, at 6:34 AM, Gaiseric Vandal wrote:

 I have limited experience with Macs in conjunction with samba but so far it 
 seems to have been working fine for me.
 
 What happens if you create a directory with 777 permissions in unix?   can 
 you ls -l the directory from a mac terminal?  My guess is that one of the 
 x bits got lost so you can't traverse the directory.
 
 
 On 05/27/2010 03:50 PM, DNK wrote:
 Hi there,
 
 I have been googling all morning, and have thus far not come up with a 
 solution...
 
 Server:
 
 CentOS release 5.5 (Final)
 
 samba-common-3.0.33-3.28.el5
 samba-3.0.33-3.28.el5
 samba-client-3.0.33-3.28.el5
 
 Client:
 OS X 10.6.3 (Build 10D578)
 All patches are applied.
 
 SMB CONF:
 
 # cat /etc/samba/smb.conf
 [global]
 workgroup = WRKGRP
 netbios name = Boleo
 server string = (%L)
 wins support = Yes
 name resolve order = wins bcast hosts
 passdb backend = tdbsam
 username map = /etc/samba/smbusers
 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/groupmod -A %u %g
 delete user from group script = /usr/sbin/groupmod -R %u %g
 add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u
 # Note: The following specifies the default logon script.
 # Per user logon scripts can be specified in the user account using pdbedit
 logon script = %U.bat
 # This sets the default profile path. Set per user paths with pdbedit
 logon path =
 logon drive = H:
 logon home = \\%L\%U
 domain logons = Yes
 os level = 35
 preferred master = Yes
 domain master = Yes
 idmap uid = 15000-2
 idmap gid = 15000-2
 
 #mac hacks
 follow symlinks = yes
 unix extensions = no
 veto files = /.DS_Store/._.*/DesktopFolderDB/Network Trash 
 Folder/resource.frk/TheFindByContentFolder/TheVolumeSettingsFolder/
 delete veto files = true
 hide dot files = yes
 
 [homes]
 comment = Home Directories
 valid users = %S
 read only = No
 browseable = No
 
 [netlogon]
 comment = Network Logon Service
 path = /shares/netlogon
 admin users = root
 guest ok = Yes
 browseable = No
 
 [myshare]
 comment = Share for the users in the myshare group
 path = /shares/myshare
 users = @ myshare
 force group = myshare
 create mask = 0660
 directory mask = 0771
 writeable = yes
 
 
 Now when I access the shares from the OS X Client, I can see everything at 
 the top level, but when i drill in even 1 level deeper, I can not see any 
 files or folders. I can see an indicator that the folder is still trying to 
 be accessed. On my win clients, there are no issues.
 
 If I drill down to a deeper folder directly (IE access with 
 smb://192.168.95.1/myshare/Docs, instead of smb://192.168.95.1/mysahre and 
 clicking into the Docs folder), I can then see the files and folders at 
 that level, but again I can not drill deeper.
 
 Ideas?
 
 Thank you.
 
 DNK
 
   
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Can only see files one level deep

2010-05-31 Thread DNK
Yes they are.

I double checked that.

D


On 2010-05-31, at 2:49 PM, zoolook wrote:

 Are users members of myshare?
 
 
 El 31/05/2010 18:46, DNK d.k.emailli...@gmail.com escribió:
 
 Here we go...
 
 
 ls -ld /shares/myshare
 drwxrws--- 12 dnk myshare 4096 May 31 12:16 /shares/myshare
 
 ls -ld /shares/myshare/Docs/
 drwxrws--- 9 dnk myshare 4096 May 19 12:35 /shares/myshare/Docs/
 
 D
 
 
 On 2010-05-31, at 1:31 PM, zoolook wrote:
 
  2010/5/31 DNK d.k.emailli...@gmail.com:
  I don't ...
 
 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Can only see files one level deep

2010-05-27 Thread DNK
Hi there,

I have been googling all morning, and have thus far not come up with a 
solution...

Server:

CentOS release 5.5 (Final)

samba-common-3.0.33-3.28.el5
samba-3.0.33-3.28.el5
samba-client-3.0.33-3.28.el5

Client:
OS X 10.6.3 (Build 10D578)
All patches are applied.

SMB CONF:

# cat /etc/samba/smb.conf
[global]
workgroup = WRKGRP
netbios name = Boleo
server string = (%L)
wins support = Yes
name resolve order = wins bcast hosts
passdb backend = tdbsam
username map = /etc/samba/smbusers
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/groupmod -A %u %g
delete user from group script = /usr/sbin/groupmod -R %u %g
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u
# Note: The following specifies the default logon script.
# Per user logon scripts can be specified in the user account using pdbedit
logon script = %U.bat
# This sets the default profile path. Set per user paths with pdbedit
logon path =
logon drive = H:
logon home = \\%L\%U
domain logons = Yes
os level = 35
preferred master = Yes
domain master = Yes
idmap uid = 15000-2
idmap gid = 15000-2

#mac hacks
follow symlinks = yes
unix extensions = no
veto files = /.DS_Store/._.*/DesktopFolderDB/Network Trash 
Folder/resource.frk/TheFindByContentFolder/TheVolumeSettingsFolder/
delete veto files = true
hide dot files = yes

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

[netlogon]
comment = Network Logon Service
path = /shares/netlogon
admin users = root
guest ok = Yes
browseable = No

[myshare]
comment = Share for the users in the myshare group
path = /shares/myshare
users = @ myshare
force group = myshare
create mask = 0660
directory mask = 0771
writeable = yes


Now when I access the shares from the OS X Client, I can see everything at the 
top level, but when i drill in even 1 level deeper, I can not see any files or 
folders. I can see an indicator that the folder is still trying to be accessed. 
On my win clients, there are no issues.

If I drill down to a deeper folder directly (IE access with 
smb://192.168.95.1/myshare/Docs, instead of smb://192.168.95.1/mysahre and 
clicking into the Docs folder), I can then see the files and folders at that 
level, but again I can not drill deeper.

Ideas?

Thank you.

DNK

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] valid users VS users in conf

2009-05-19 Thread DNK

Hi there,

Samba 3.0.33-3.7.el5
Centos 5.3

For some time now I have been using the following on my shares:

valid users = @group



For some reason, my samba just up and crapped out over the weekend...

When trying to mount the drive (Win XP), it just keeps asking for the  
credentials.

When trying from OS X, I get A volume failed to mount error.

When attempting with the smbclient I get:
tree connect failed: NT_STATUS_ACCESS_DENIED

I was watching my log file with a tail -f and NOTHING is logged there  
when it fails.



I did some searching around and some posts for similar issues people  
suggest using:


users = @group

for the shares.

I tried that and it started working again. There were no updates done  
to the system, and my system has been working with the valid users =  
@group for years.


Why would this happen?

Is there any disadvantage or security concern by using the users =  
@group style?


Ideas?

Dustin




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] valid users VS users in conf

2009-05-19 Thread DNK


On 18-May-09, at 11:48 PM, Michael Heydon wrote:


DNK wrote:

Why would this happen?

No idea...


Is there any disadvantage or security concern by using the users =  
@group style?
Yes, the users option does something completely different to the  
valid users option. While there may be some similarities in the end  
result, they are not the same.


The most obvious issue is where two users happen to have the same  
password, they will both authenticate as the first user in the list.


Can you paste your smb.conf?

*Michael Heydon - IT Administrator *
micha...@jaswin.com.au mailto:micha...@jaswin.com.au



Here it is pretty basic for the most part. I have clipped out all  
my shares, but left in one example. In my below conf, the main share  
originally had:


valid users = @main

But just to get it working for this AM, it now has:

users = @main



- smb.conf -

[global]
workgroup = DOMAIN
netbios name = Fileserver
server string = (%L)
wins support = Yes
name resolve order = wins bcast hosts
passdb backend = tdbsam
username map = /etc/samba/smbusers
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/groupmod -A %u %g
delete user from group script = /usr/sbin/groupmod -R %u %g
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/ 
nobody %u

# Note: The following specifies the default logon script.
# Per user logon scripts can be specified in the user account using  
pdbedit

logon script = %U.bat
# This sets the default profile path. Set per user paths with pdbedit
logon path =
logon drive = H:
logon home = \\%L\%U
domain logons = Yes
os level = 35
preferred master = Yes
domain master = Yes
idmap uid = 15000-2
idmap gid = 15000-2
#mac hacks
follow symlinks = yes
unix extensions = no
veto files = /.DS_Store/._.*/DesktopFolderDB/Network Trash Folder/ 
resource.frk/TheFindByContentFolder/TheVolumeSettingsFolder/

delete veto files = true
hide dot files = yes

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

[netlogon]
comment = Network Logon Service
path = /shares/netlogon
admin users = root
guest ok = Yes
browseable = No

[main]
comment = Share for the users in the baja group
path = /shares/main
users = @main
force group = main
create mask = 0660
directory mask = 0771
writeable = yes


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Using more than one user names, are not allowed

2009-05-12 Thread dnk

Hi there,

I am running a centos 5.3 machine with the following samba components:

# rpm -qa | grep samba
samba-common-3.0.33-3.7.el5
samba-3.0.33-3.7.el5
samba-client-3.0.33-3.7.el5


Now intermittently I have users (machine not part of the domain) who  
get the following error:



An error occurred while reconnecting P: to \\xxx.xxx.xxx.xxx\share

Microsoft Windows Network : Multiple connections to a server or shared  
resource by the same user, using more than one user name, are not  
allowed. Disconnect all previous connections to the server or shared  
resource and try again.


This connection has not been restored.



Now I have not seen anything special in my smb logs, and the issue is  
obviously temporarily resolved wen killing all mapped drives and  
remapping them.


D
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] ctrl-alt-del to change password

2009-05-01 Thread dnk
Can samba be configured to allow users to use ctrl-alt-del to change  
their password? If so, any special config needed?


I have a PDC running without issue, but was curious about this. I was  
not sure if it was able to update both the smb and linux passwords.


d


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] smbd/service.c:make_connection_snum(1003)

2009-04-27 Thread dnk

Hi there,

I am getting the below errors in my logs:

smbd/service.c:make_connection_snum(1003)
Apr 27 00:14:10 computer smbd[2626]:   '/home/user' does not exist or  
permission denied when connecting to [user] Error was Permission denied


With  a ls- al, you can see the ownership/permissions are correct.

ls -al /home/ | grep user
drwx--  5 user   user   4096 Apr 26 23:48 user



My smb.conf

[global]
workgroup = DOMAIN
netbios name = Computer
server string = (%L)
wins support = Yes
name resolve order = wins bcast hosts
passdb backend = tdbsam
username map = /etc/samba/smbusers
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/groupmod -A %u %g
delete user from group script = /usr/sbin/groupmod -R %u %g
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/ 
nobody %u

# Note: The following specifies the default logon script.
# Per user logon scripts can be specified in the user account using  
pdbedit

logon script = %U.bat
# This sets the default profile path. Set per user paths with pdbedit
logon path =
logon drive = H:
logon home = \\%L\%U
domain logons = Yes
os level = 35
preferred master = Yes
domain master = Yes
idmap uid = 15000-2
idmap gid = 15000-2
#mac hacks
follow symlinks = yes
unix extensions = no
veto files = /.DS_Store/._.*/DesktopFolderDB/Network Trash Folder/ 
resource.frk/TheFindByContentFolder/TheVolumeSettingsFolder/

delete veto files = true
hide dot files = yes

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

Ideas?

d




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] users home folders not accessable - access denied

2009-04-27 Thread dnk
I apologize in advance if this is a double post. I had sent my last  
one from my phone and i never saw it show up on here, so thought  
something may have went haywire there. Anyways onto the issues:


System:
CentOS 5.3
samba-3.0.33-3.7.el5
samba-client-3.0.33-3.7.el5
samba-common-3.0.33-3.7.el5


I have a samba server that was running great. I have my /home mounted  
on a raid 1 drive.


In my fstab it had:

/dev/md0/home ext3defaults,acl 
1 2


Now i was running out of room, so i added another hard drive. As the  
original system that was configured did not use LVM, I had to create a  
new mount point.


So I formatted the new drive with ext3, and was going to split my  
samba into two drives.. the raided drives would contain all my main  
samba shares, and my home folders would just be on the new single  
drive (space constrictions in the chassis, otherwise i would have done  
it as raid 1 as well).


So I modified my fstab to be:

/dev/md0/shares ext3 
defaults,acl1 2
/dev/sdc1   /home   ext3 
defaults,acl1 2


Now as you can see, the raid 1 drives (my original /home) has been  
moved to /shares and my new drive is now /home. All the home  
directories were moved to the new drive (sdc1). I can access the data,  
write to it, delete, etc. So all seems fine from the CLI. For all  
intents and purposes, the new drive is there, mounting at boot, and  
able to be used.


Now when i try to access all my shares, my main shares from the / 
shares drive work like a charm. But when a user tries to access their  
private folder (/home/username), they get the error:


\\server\username is not accessible. You might not have permission to  
use this network resource. Contact the system administrator of this  
server to find out if you have access permissions. The network name  
cannot be found.


Now when browsing the network, I can see that share there.

When I look in my smbd.log file I see:

smbd/service.c:make_connection_snum(1003)
  '/home/username' does not exist or permission denied when  
connecting to [username] Error was Permission denied


Just to see if i can get more info, I tried mapping the drive

net use h: \\server\username

System error 53 has occurred. The network path was not found.

from another machine I tried to access via cli (os x to my samba server)

smbclient //server/username -Uusername%password
Domain=[DOM] OS=[Unix] Server=[Samba 3.0.33-3.7.el5]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

Below is my smb.conf

[global]
workgroup = DOM
netbios name = Server
server string = (%L)
wins support = Yes
name resolve order = wins bcast hosts
passdb backend = tdbsam
username map = /etc/samba/smbusers
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/groupmod -A %u %g
delete user from group script = /usr/sbin/groupmod -R %u %g
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/ 
nobody %u

# Note: The following specifies the default logon script.
# Per user logon scripts can be specified in the user account using  
pdbedit

logon script = %U.bat
# This sets the default profile path. Set per user paths with pdbedit
logon path =
logon drive = H:
logon home = \\%L\%U
domain logons = Yes
os level = 35
preferred master = Yes
domain master = Yes
idmap uid = 15000-2
idmap gid = 15000-2
#mac hacks
follow symlinks = yes
unix extensions = no
veto files = /.DS_Store/._.*/DesktopFolderDB/Network Trash Folder/ 
resource.frk/The

FindByContentFolder/TheVolumeSettingsFolder/
delete veto files = true
hide dot files = yes

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

[netlogon]
comment = Network Logon Service
path = /shares/netlogon
admin users = root
guest ok = Yes
browseable = No

[main]
comment = Share for the users in the main group
path = /shares/main
valid users = @main
force group = main
create mask = 0660
directory mask = 0771
writeable = yes

Then I went as far as defining an actual share for on of my users to  
test by adding to my smb.conf


[username]
comment = TMP Share for username files
path = /home/enorton
valid users = @username
force group = username
create mask = 0660
directory mask = 0771
writeable = yes

And all my symptoms were the same.

I also tried:
- I checked my rsolv.conf - all good there.

- pings both ways- all good

- firewall (none on the samba server - at this point for testing):
 # iptables -L -v
Chain INPUT (policy ACCEPT 99665 packets, 18M bytes)
 pkts bytes target prot opt in out source
destination


Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target prot opt in out source
destination


Chain OUTPUT (policy ACCEPT 87228 packets, 33M bytes)
 pkts bytes target prot 

[Samba] Re: users home folders not accessable - access denied

2009-04-27 Thread dnk


On 27-Apr-09, at 9:53 AM, dnk wrote:


- Double checked permissions on the actual home folders:
# ls -al /home/ | grep user
drwx--  5 user   user   4096 Apr 26 23:48 user
-reset them to be safe:
# chmod -R 700 /home/username; chown -R user:user /home/user


OMG - I just figured it out

I am posting it here for a resolution to hopefully help others... I  
was 2 days in (googling, tweaking, etc)  on this and had never even  
thought about this:


Permissions on he home folder itself. For some unknown reason to me,  
when i moved my home folder, it had it's permissions set to one of my  
users. I was root when I moved it. I must have fudged it!


So for reference, make sure to check the permissions on your folders  
ABOVE the share itself as well.


In my case, as simple:

# chown root:root /home
# chmod g+rx /home
# chmod o+rx /home

Bringing my home folder to:

# ls -al / | grep home
drwxr-xr-x 43 root root  4096 Apr 27 08:23 home

ugh.

DK




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] net usersidlist

2009-04-27 Thread dnk
Does anybody know the requirements to use the net usersidlist command?  
I always get the below:


# net usersidlist
[2009/04/27 10:14:15, 0] utils/net_rpc.c:net_usersidlist(4731)
  Could not get the user/sid list

Thanks in advance.

d


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba]user directories network path not found -was: Changing users home directory location

2009-04-26 Thread Dnk





On 26-Apr-09, at 1:30 AM, Michal Dobroczynski michal.dobroczyn...@gmail.com 
 wrote:



Hello,
When you create symbolic links to your home directories then take a
look also on the following configuration directive: unix extensions.
We had to set it to no, otherwise Macs would not really work.

Regards,
Michal

2009/4/25 Miguel Medalha miguelmeda...@sapo.pt:




But again, no go. So I am assuming there must be another setting


Create a symbolic link from /home to your new home location.
You won't need to change anything in your smb.conf.



Well, I got all my directories moved around. I actually ended up  
remounting the drive with the user folders back at /home, and mounted  
my actual share folders back at /share. Both were always in seperate  
drives. All my permissions were actually managed from bash scripts, so  
it was super easy to reset and move my main samba shares.


I then swapped the user home folders back using the usermod (-d) tool.

I changed back my smb.conf back to my original settings. I thought  
that since my home folders were back where they always were, and that  
my smb.conf was back to original - it would all work.


So as it stands, all my defined shares work great, but my user home  
folders have the network path not found error when trying to access or  
map the drive.


So ideas in this issue?

D
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Changing users home directory location

2009-04-25 Thread dnk

Hi there,

I have a pretty stock samba setup, but had been getting low on drive  
space. I dropped in another hard drive, and added it as the mount  
point /home/users.


I then moved all my user folders into the /home/users folder  
(effectively moving them to another hard drive), and left my existing  
public samba shares where they were /home/samba/share. I didn't want  
to have to much with my ACL's, etc.


I then used the usermod tool to update all the users home directory.

# usermod -d /home/users/username username

now my smb.conf currently has (home directory related - rest trimmed):

logon home = \\%L\%U

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

Now after restarting smb, and trying to access my mapped drives

\\xxx.xxx.xxx.xxx\username

They are not accessible. How does samba determine that path?

I also tried making my homes share like:

[homes]
comment = Home Directories
path = /home/users
valid users = %S
read only = No
browseable = No

But again, no go. So I am assuming there must be another setting

Then I tried:

[homes]
comment = Home Directories
path = /home/users/%u
valid users = %S
read only = No
browseable = No

and

[homes]
comment = Home Directories
path = /home/users/%U
valid users = %S
read only = No
browseable = No


Any pointers here?

Thanks in advance!




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] samba auth against imap?

2008-06-13 Thread dnk
I had a VP in our company ask today if it was possible to use the same  
id's and passwords as our mail server. Now if it was LDA based, no  
problem.


But I was just curious if there was some sort of authentication method  
to authenticate samba shares against an IMAP server? I have seen a few  
other pieces of software use imap authentication. I have security  
concerns over this method, but just wanted to see if it was even  
possible. I have been google searching, but no real answers yet.


Thanks in advance,.

dnk
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] push install software with samba

2008-06-05 Thread dnk

Godo day all,

I used to have a book mark for an open source piece of software that  
could be used in conjunction with samba to push install software (that  
supported unattended installs) and windows updates (I think). I for  
the life of me can not remember what it is called.


Does anyone have a URL or two for something like this to work with  
samba?


Thanks!

Dnk


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] access denied Sid does not start with 'S-'.

2007-08-20 Thread dnk
Hi there.

For some reason I am getting permission denied errors on a new samba server.
I can add machines to the domain, I can login with any user id's and so on
as well. But when I try connecting to a public share, or the users home
directory, I get a user denied error.

\\Fileserver\user is not accessible. You might not have permission to use
this network resource. Contact the administrator of this server to find out
if you have access permission.

When checking the permissions on the users home directory, i have the
following:

drwx--   3 user user

And permissions on my public directory is:

drwxrwxr-x 9 root users

In my log files I have:

smb.log

Connect path is '/home/dustin' for service [dustin]
  string_to_sid: Sid dustin does not start with 'S-'.
  '/home/dustin' does not exist or permission denied when connecting to
[dustin] Error was Permission denied
  Yielding connection to dustin
  create_conn_struct: Can't ChDir to new conn path /home/dustin. Error was
Permission denied
  create_conn_struct: Can't ChDir to new conn path /home/dustin. Error was
Permission denied




My SMB.conf is below, any ideas? This one is driving me insane as this
server was working when i set it up back in our office



[global]
   workgroup = DOMAIN
   netbios name = Fileserver
   server string = DOMAIN %h

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

  #Extra Security
   hosts allow = 192.168.90.0/24, 127.0.0.1
   hosts deny = 0.0.0.0/0

  #Misc
   veto oplock files = /*.doc/*.xls/*.mdb/
   time server = yes

   # Set CUPS for printing
   load printers = yes
   printcap name = CUPS
   printing = CUPS

   # Default logon
   logon drive = H:
   logon script = %U.bat
   logon path =
   logon home =

   # Useradd scripts
   add user script = /usr/sbin/adduser --quiet --disabled-password --gecos
 %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 /sbin/nologin -d
/var/lib/nobody %u
   idmap uid = 15000-2
   idmap gid = 15000-2
   template shell = /bin/bash

# sync smb passwords with linux passwords
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
   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

[netlogon]
   comment = Network Logon Service
   path = /home/samba/netlogon
   admin users = Administrator
   valid users = %U
   read only = no
   guest ok = yes
   writable = no
   share modes = no

[public]
comment = All Users
path = /home/shares/public
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writeable = yes
read only = no
inherit permissions = yes
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] pdc login issues with Vista

2007-04-23 Thread dnk

Hi there, I just setup a Centos 5 server running samba 3.0.23c (as provided
by upstream via YUM). And it is Vista Business edition. Now I am looking for
a little clarification on this setup.

I have been reading on google and the list archives, about NTLMv2 auth and
the fact you need to make an edit with the secpol.msc. I did complete that.
I also read that I would need to add (which I have made note can be removed
as of samba 3.0.25) host msdfs = no to my smb.conf - which i also did in
the global section.

Now I have added the machine to the domain, without issue (according to
Vista), but when I try to log in (with a domain user), I get the error (from
Vista):

There are currently no logon servers available to service the logon
request.

I again searched google for this error with regards to Samba and found
nothing.

Upon looking in the samba log files, I found nothing in my
/var/log/samba/*.logs of error like. It all seemed like pretty standard
start up diolog.

So as a test I logged into the vista box with a local user, and mapped a
drive. That seemed to work without issue. I threw on a few folders and text
files. Again no issues.

Here is my smb.conf for reference:
[global]
   ### GENERAL ##
   domain logons = yes
   domain master = Yes
   netbios name = JKA
   os level = 255
   preferred master = yes
   security = user
   wins support = no
   workgroup = JKA
   ## SECURITY ##
   # disable LM authentication
   lanman auth = no
   lm announce = no
   # increase the minimum protocol
   # This disables win9x to win me
   min protocol = NT1
   # Allow these IP Addresses to connect
   hosts allow = 10.0.0.0/24 127.0.0.1
   # Anything else not allowed is, by default, rejected
   hosts deny = ALL
   ## LOGGING ##
   debug timestamp = yes
   log file = /var/log/samba/%U-%m.log
   log level = 2
   max log size = 9216
## LOGON ##
   ##  DK   ##
   # a user logon script
   logon script = %U.bat
   # Logon path used to enable roaming profiles
   # Comment out the blank one and uncomment the other to enable
   #logon path = \\%L\profiles\%U
   logon path =
   logon drive = H:
   logon home = \\%L\home\%U
   ## FILE LOCKING ##
   ## DK   ##
   # See:
   # http://www.oreilly.com/catalog/samba/chapter/book/ch05_05.html
   veto oplock files = /*.doc/*.xls/*.mdb/
   ## VISTA HACKS ##
   ### DK ##
   # Can be removed as of samba 3.0.25
   host msdfs = no

[netlogon]
   comment = Network Logon Service
   path = /home/samba/netlogon
   locking = No

;[profiles]
   ;comment = Profile Share
   ;path = /home/samba/profiles
   ;read only = No
   ;profile acls = Yes
   ;create mode = 0600
   ;directory mode = 0700
   ;browseable = No

[homes]
   comment = Home Directories
   valid users = %S
   read only = no
   browseable = no
   create mode = 0600
   directory mode = 0700

[Public]
   path = /home/shares/public
   read only = No
   comment = Public Folders
   public = yes
   writeable = yes
# END SMB.CONF

Can anyone see anything funny about my conf? Note that I add the machine to
the domain via the command line due to an error I get with the useradd and
usermod tools (unrelated to this, so will not go into details). But in case
my command has any relivance, it is:

useradd -d /dev/null -g workstation -s /sbin/nologin theworkstationname$
passwd -l theworkstationname$
smbpasswd -a -m theworkstationname$

Any ideas?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba