[linux-cifs-client] Re: cifs no write access
Harry Putnam
reader at newsguy.com
Tue Mar 9 19:17:35 GMT 2004
Steven French <sfrench at us.ibm.com> writes:
>> I can mount the shares but cannot write to them
>
> I don't remember whether I already asked you this - which version did you
> try that had the problems with no write access:
> since smbfs uses the old (dos style) file open - the default file
> permissions it gets were different than what cifs vfs would get on file
> open since cifs vfs uses the newer style CreateX with much more granular
> desiredAccess possible over the network (for version 0.94 of the code
> which is what is in Fedora I remember there being a problem for a couple
> ACL cases where this would show up). This has been fixed since then in
> the development tree but could be one reason why the write access would
> vary.
The version in samba-3.0.2a-1
mount.cifs --version
mount.cifs version: 1.1
Steven wrote:
> Not sure what the mount flags of 0 0 resolve to when automounter gets
> around to calling mount.cifs (I don't typically use that any more)
I've removed them now as well as password=""
New parameters:
//exp-xp/J-ahn-d /mnt/J-ahn-d cifs username=Administrator
Mounting works but still no write allowed.
> If the problem went away when mounted with a Windows admin id but failed
> with regular user I would not be surprised if this were the issue (I was
> requesting GENERIC_ALL permission on open while the older dos style open
> that smbfs used implicitly would in effect be asking for GENERIC_READ
> GENERIC_WRITE which will succeed more often when the ACL is not wide open
> since it does not request take ownership permission as GENERIC_ALL does
> e.g.)
This is a stock fedora kernel except I reenabled smbfs.
That is not what is happening here. It fails either way. I've
included the output from syslog (pared down by removing
non-significant stuff from the lines). The syslog output is the
result of running these commands:
(fstab paramerters first:
//exp-xp/J-ahn-d /mnt/J-ahn-d cifs username=Administrator)
mount /mnt/J-ahn-d <no feed back>
touch /mnt/J-ahn-d (permission denied)
umount /mnt/J-ahn-d <no feed back>
Note the error that showed up when touching as above. Around line<138>
There were earlier errors to at around line<126>
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/cifsfs.c: Devname: //exp-xp/J-ahn-d flags: 64
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 24 with uid: 0
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: Entering cifs_mount. Xid: 24 with: unc=//exp-xp\J-ahn-d,ip=192.168.0.15,pass=,ver=1,rw,username=Administrator
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: Username: Administrator
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: UNC: \\exp-xp\J-ahn-d
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: Socket created
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: Existing smb sess not found
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/transport.c: For smb_command 114
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/transport.c: Sending smb of length 47
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: Demultiplex PID: 14269
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: Peek length rcvd: 36 with smb length: 105
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: Mid 0x2f matched - waking up
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0xe3fd Time Zone: 360
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: In sesssetup
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/transport.c: For smb_command 115
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/transport.c: Sending smb of length 232
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: Peek length rcvd: 36 with smb length: 129
Mar 9 13:12:22 2.6.3-1.118/fs/cifs/connect.c: Mid 0x30 matched - waking up
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: Guest login
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: UID = 2048
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: CIFS Session Established successfully
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: file mode: 0x7f7 dir mode: 0x1ff
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/transport.c: For smb_command 117
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/transport.c: Sending smb of length 84
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: Peek length rcvd: 36 with smb length: 64
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: Mid 0x31 matched - waking up
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: Tcon flags: 0x1
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: CIFS Tcon rc = 0
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/cifssmb.c: In QFSDeviceInfo
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/transport.c: For smb_command 50
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/transport.c: Sending smb of length 68
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: Peek length rcvd: 36 with smb length: 68
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: Mid 0x32 matched - waking up
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/cifssmb.c: In QFSAttributeInfo
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/transport.c: For smb_command 50
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/transport.c: Sending smb of length 68
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: Peek length rcvd: 36 with smb length: 78
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: Mid 0x33 matched - waking up
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 24) rc = 0
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/inode.c: CIFS VFS: in cifs_get_inode_info as Xid: 25 with uid: 0
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/inode.c: Getting info on
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/cifssmb.c: In QPathInfo path
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/transport.c: For smb_command 50
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/transport.c: Sending smb of length 74
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: Peek length rcvd: 36 with smb length: 138
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/connect.c: Mid 0x34 matched - waking up
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/inode.c: Old time 0
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/inode.c: New time 62701205
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/inode.c: Directory inode
Mar 9 13:12:23 2.6.3-1.118/fs/cifs/inode.c: CIFS VFS: leaving cifs_get_inode_info (xid = 25) rc = 0
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/dir.c: CIFS VFS: in cifs_lookup as Xid: 26 with uid: 0
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/dir.c: parent inode = 0xcff86e1c name is: it and dentry = 0xc43403a8
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/dir.c: In lookup nd flags 0x300 open intent flags 0x8942
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/dir.c: NULL inode in lookup
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/dir.c: Full path: \it inode = 0x00000000
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/inode.c: CIFS VFS: in cifs_get_inode_info as Xid: 27 with uid: 0
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/inode.c: Getting info on \it
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/cifssmb.c: In QPathInfo path \it
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/transport.c: For smb_command 50
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/transport.c: Sending smb of length 80
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/connect.c: Peek length rcvd: 36 with smb length: 39
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/connect.c: Mid 0x35 matched - waking up
Mar 9 13:12:33 reader kernel: Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/netmisc.c: !!Mapping smb error code 2 to POSIX err -2 !!
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/cifssmb.c: Send error in QPathInfo = -2
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/inode.c: CIFS VFS: leaving cifs_get_inode_info (xid = 27) rc = -2
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/dir.c: CIFS VFS: leaving cifs_lookup (xid = 26) rc = 0
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/dir.c: CIFS VFS: in cifs_create as Xid: 28 with uid: 0
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/dir.c: In create for inode cff86e1c dentry->inode 00000000 nd flags = 0x300 for \it
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/transport.c: For smb_command 162
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/transport.c: Sending smb of length 92
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/connect.c: Peek length rcvd: 36 with smb length: 39
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/connect.c: Mid 0x36 matched - waking up
Mar 9 13:12:33 reader kernel: Status code returned 0xc0000022 NT_STATUS_ACCESS_DENIED
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/netmisc.c: !!Mapping smb error code 5 to POSIX err -13 !!
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/cifssmb.c: Error in Open = -13
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/dir.c: cifs_create returned 0xfffffff3
Mar 9 13:12:33 2.6.3-1.118/fs/cifs/dir.c: CIFS VFS: leaving cifs_create (xid = 28) rc = -13
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/cifsfs.c: In cifs_put_super
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/connect.c: CIFS VFS: in cifs_umount as Xid: 29 with uid: 0
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/cifssmb.c: In tree disconnect
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/transport.c: For smb_command 113
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/transport.c: Sending smb of length 35
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/connect.c: Peek length rcvd: 36 with smb length: 39
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/connect.c: Mid 0x37 matched - waking up
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/connect.c: About to do SMBLogoff
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/cifssmb.c: In SMBLogoff for session disconnect
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/transport.c: For smb_command 116
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/transport.c: Sending smb of length 39
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/connect.c: Peek length rcvd: 36 with smb length: 43
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/connect.c: Mid 0x38 matched - waking up
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/connect.c: Waking up socket by sending it signal
Mar 9 13:12:56 2.6.3-1.118/fs/cifs/connect.c: About to exit from demultiplex thread
Mar 9 13:12:57 2.6.3-1.118/fs/cifs/connect.c: CIFS VFS: leaving cifs_umount (xid = 29) rc = 0
More information about the linux-cifs-client
mailing list