[linux-cifs-client] sym/hardlink error

Scott Barker Scott_Barker at mtechIT.com
Tue Aug 17 19:28:30 GMT 2004


I get the following errors when trying to create sym/hardlinks using
CIFS 1.17 and linux kernel 2.6.6:

> ln test test1
ln: creating hard link `test1' to `test': Permission denied
> ln -s test test1
ln: creating symbolic link `test1' to `test': Permission denied

The kernel log shows (after echo 1 > /proc/fs/cifs/cifsFYI):

 ...
 fs/cifs/link.c: CIFS VFS: in cifs_symlink as Xid: 3007226 with uid: 580
 fs/cifs/link.c: Full path: \test1
 fs/cifs/link.c: symname is test
 fs/cifs/cifssmb.c: In Symlink Unix style
 fs/cifs/transport.c: For smb_command 50
 fs/cifs/transport.c: Sending smb of length 98
 fs/cifs/connect.c: Peek length rcvd: 0x24 beginning 0x27)
 fs/cifs/connect.c:  Mid 0x7abb matched - waking up
Status code returned 0xc0000022 NT_STATUS_ACCESS_DENIED
 fs/cifs/netmisc.c:  !!Mapping smb error code 5 to POSIX err -13 !!
 fs/cifs/cifssmb.c: Send error in SetPathInfo (create symlink) = -13
 fs/cifs/link.c: CIFS VFS: leaving cifs_symlink (xid = 3007226) rc = -13
 ...

It looks like I might have my samba 3.0.4 server misconfigured somehow
if it's returning NT_STATUS_ACCESS_DENIED (if that's what is happening).

Can anyone help?

-- 
Scott Barker                                    Scott_Barker at mtechIT.com
Manager, Infrastructure                         403-233-0740 x248
M-Tech Information Technology, Inc.             http://mtechIT.com


More information about the linux-cifs-client mailing list