[Samba] Input/Output error when saving to samba profile di..

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Samba RSS
Next:  Bug#517373: FTBFS(powerpc): configure: error: lib..  
Author Message
Dave Newman
External


Since: Feb 27, 2009
Posts: 3



PostPosted: Fri Feb 27, 2009 12:10 pm    Post subject: [Samba] Input/Output error when saving to samba profile directory
Archived from groups: linux>samba (more info?)

I've set up samba and ldap, based on the instructions at the howtoforge at

http://www.howtoforge.com/openldap-samba-domain-controller-ubuntu7.10

Although I've used 8.04, rather than 7.10. It's running as a Virtual machine
on a dual core 3Ghz intel box.

It works fine, with one exception. Windows users can't write to their
profile directory.

I decided to mount the offending directory as a samba share on another linux
machine. I can read the contents fine, but trying to delete a file generates
an Input/Output error.

I can't see anything appearing in the logs. when I look in the samba logs
directory no additional log entries are made as a result of attempting to
delete the file.

I've pretty much run out of leads, so I'm at a dead end. Any ideas?

my smb.conf file is as follows:

[global]
workgroup = LONSERVER
server string = %h domain server
wins support = yes
interfaces = eth0
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 10
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = ldapsam:ldap://localhost/
obey pam restrictions = no
ldap admin dn = cn=admin,dc=internal,dc=tcc-uk,dc=net
ldap suffix = dc=internal,dc=tcc-uk,dc=net
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=Users
ldap passwd sync = Yes
passwd program = /usr/sbin/smbldap-passwd %u
passwd chat = *New*password* %n\n
*Retype*new*password*%n\n*all*authentication*tokens*updated*
add user script = /usr/sbin/smbldap-useradd -m "%u"
ldap delete dn = Yes
delete user script = /usr/sbin/smbldap-userdel "%u"
add machine script = /usr/sbin/smbldap-useradd -w "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
delete group script = /usr/sbin/smbldap-groupdel "%g"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
domain logons = yes
pam password change = yes
map to guest = bad user
logon path = \\LONSERVER\profiles\%U
logon drive = H:
logon home = \\%N\%U
socket options = TCP_NODELAY
idmap uid = 10000-20000
idmap gid = 10000-20000
template shell = /bin/bash
winbind enum groups = yes
winbind enum users = yes
usershare allow guests = yes
[netlogon]
comment = Network Logon Service
path = /var/samba/netlogon
guest ok = yes
read only = yes
share modes = no
[profiles]
comment = Users profiles
path = /var/samba/profiles
guest ok = no
browseable = no
create mask = 0600
directory mask = 0700
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Laurent Besson
External


Since: Feb 27, 2009
Posts: 2



PostPosted: Fri Feb 27, 2009 1:10 pm    Post subject: Re: [Samba] Input/Output error when saving to samba profile directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Le Friday 27 February 2009 12:28:49 Dave Newman, vous avez écrit :

Did you have :
# chmod a+w /var/samba/profiles

My english is not perfect Smile
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Laurent Besson
External


Since: Feb 27, 2009
Posts: 2



PostPosted: Fri Feb 27, 2009 1:10 pm    Post subject: Re: [Samba] Input/Output error when saving to samba profile directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Le Friday 27 February 2009 12:28:49 Dave Newman, vous avez écrit :
>    create mask = 0600
>    directory mask = 0700

Why ?
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Dave Newman
External


Since: Feb 27, 2009
Posts: 3



PostPosted: Mon Mar 02, 2009 12:10 pm    Post subject: Re: [Samba] Input/Output error when saving to samba profile directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Le Friday 27 February 2009 12:28:49 Dave Newman, vous avez écrit :
> create mask = 0600
> directory mask = 0700

Why ?

This was the default in the existing ubuntu smb.conf file. I didn't change
it.

I have just tried commenting out those lines, but I still get the
Input/Output error.

On Fri, Feb 27, 2009 at 12:16 PM, Laurent Besson wrote:

> Le Friday 27 February 2009 12:28:49 Dave Newman, vous avez écrit :
>
> Did you have :
> # chmod a+w /var/samba/profiles
>
>
the profiles are stored on a different virtual disk, but I have mounted it
on /var/samba/profiles with full write access.

If I log on to the linux machine with my user credentials, I can create and
delete files at the command line.
When I create an SMB mount as that user on a different linux machine, I get
an Input/Output Error if I try to change or delete a file.

You can see why my attention is focused on samba here..

Do you think it might be a bug? certainly it's not generating any sensible
error messages.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Dave Newman
External


Since: Feb 27, 2009
Posts: 3



PostPosted: Mon Mar 02, 2009 3:10 pm    Post subject: Re: [Samba] Input/Output error when saving to samba profile directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>
>
> the profiles are stored on a different virtual disk, but I have mounted it
> on /var/samba/profiles with full write access.
>
> If I log on to the linux machine with my user credentials, I can create and
> delete files at the command line.
> When I create an SMB mount as that user on a different linux machine, I get
> an Input/Output Error if I try to change or delete a file.
>
>

OK, I thought it might be a strange interaction with the virtual disk mount,
so I simplified the situation by copying the profiles to the root partition.
I still have the same problem (which is comforting in a way, because I have
very little space on the root partition!)

I think the next stage is to use a protocol analyser I suppose. Anyone got
any suggestions?

It's annoying as I've got lots of windows people asking me to put a windows
domain server in, and if I can't get this working I suspect I'll have no
choice Sad
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Samba All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Warning: fopen(): open_basedir restriction in effect. File(/home/adsense_reject.txt) is not within the allowed path(s): (/home/helploc:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/helploc/public_html/Giga/GigaFunctions.php on line 1144

Warning: fopen(/home/adsense_reject.txt): failed to open stream: Operation not permitted in /home/helploc/public_html/Giga/GigaFunctions.php on line 1144

Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/helploc/public_html/Giga/GigaFunctions.php on line 1145

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/helploc/public_html/Giga/GigaFunctions.php on line 1146