cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot write to CIFS on Win Vista/7

valerion
Champ in-the-making
Champ in-the-making
Greetings,

I have recently installed a fresh installation of Alfresco 3.4b, and it works fine.  However, I find that Windows Vista and Windows 7 clients cannot create files on the CIFS share.  Once a file is created, you can delete and edit it.  I don't have this issue with my Windows XP client machines.

In my own workspace I get the following error:

14:18:38,933 User:braamvh ERROR [org.alfresco.fileserver] org.alfresco.repo.security.permissions.AccessDeniedException: 10180002 Access Denied.  You do not have the appropriate permissions to perform this operation.
org.alfresco.repo.security.permissions.AccessDeniedException: 10180002 Access Denied.  You do not have the appropriate permissions to perform this operation.
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:48)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:167)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy45.getStoreFreeSpace(Unknown Source)
at org.alfresco.filesys.repo.ContentDiskDriver.getDiskInformation(ContentDiskDriver.java:3972)
at org.alfresco.jlan.smb.server.ProtocolHandler.getDiskInformation(ProtocolHandler.java:157)
at org.alfresco.jlan.smb.server.NTProtocolHandler.procTrans2QueryFileSys(NTProtocolHandler.java:4030)
at org.alfresco.jlan.smb.server.NTProtocolHandler.processTransactionBuffer(NTProtocolHandler.java:1773)
at org.alfresco.jlan.smb.server.NTProtocolHandler.procTransact2(NTProtocolHandler.java:1600)
at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:232)
at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1366)
at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1458)
at org.alfresco.jlan.smb.server.nio.NIOCIFSThreadRequest.runRequest(NIOCIFSThreadRequest.java:105)
at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:153)
at java.lang.Thread.run(Thread.java:619)
Caused by: net.sf.acegisecurity.AccessDeniedException: Access is denied.
at net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86)
at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:394)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:125)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
… 19 more

Installed on CentOS 5.5 with no samba running on the machine.
4 REPLIES 4

stevegreenbaum
Champ in-the-making
Champ in-the-making
What permissions are set on the target folder? 

I am receiving the same message on a 3.4b installation, but only on one particular file.  I have a document that I was online editing and when I try to cancel editing on the working copy I receive "Access Denied. You do not have the appropriate permissions to perform this operation.".  I am logged in as admin and the owner of the document is admin. 

Regarding your use of Centos, I attempted to install v3.4b on Centos5.3, but was unsuccessful.  Was there anything special you found you needed to do to get 3.4b running on Centos5.5?

valerion
Champ in-the-making
Champ in-the-making
What permissions are set on the target folder? 

I am receiving the same message on a 3.4b installation, but only on one particular file.  I have a document that I was online editing and when I try to cancel editing on the working copy I receive "Access Denied. You do not have the appropriate permissions to perform this operation.".  I am logged in as admin and the owner of the document is admin. 

Regarding your use of Centos, I attempted to install v3.4b on Centos5.3, but was unsuccessful.  Was there anything special you found you needed to do to get 3.4b running on Centos5.5?

For me it just installed without changes.  This server had SELinux disabled, though.

I also found out that this only happens with 3.4b, 3.4a works correctly for me.  I think something was changed in the SMB code that Windows 7 and Vista doesn't like.

loftux
Star Contributor
Star Contributor
It is a known issue.
https://issues.alfresco.com/jira/browse/ALF-5760
It is marked as resolved for 3.4.0 Enterprise, we can just hope that it gets merged to HEAD before a release of 3.4.c

valerion
Champ in-the-making
Champ in-the-making
I upgraded to 3.4c Community today, and the problem is still present.  In addition, I get this in my own home space as well, where I have All the roles.  To test this, I added myself as a Coordinator in the space (now showing as All, Coordinator), and it still behaved the same way.  I've tried to disable NIO, but that didn't solve the issue either.  The logs are definitely pointing towards a permissions problem.

Is there anything else I can try regarding this?  This only happens for me on Win7/Vista, not on Windows XP.  I am running on CentOS 5.

My current file-servers.properties:

filesystem.name=Alfresco

cifs.enabled=true
#cifs.localname=${localname}
cifs.localname=alfresco
cifs.domain=
#cifs.broadcast=255.255.255.255
cifs.broadcast=192.168.1.255
#cifs.bindto=0.0.0.0
cifs.ipv6=disabled
cifs.hostannounce=true

cifs.disableNIO=true

ftp.enabled=true
ftp.ipv6=disabled

nfs.enabled=false

The entries in my Tomcat logs:

12:03:11,580 User:braamvh ERROR [org.alfresco.fileserver] org.alfresco.repo.security.permissions.AccessDeniedException: 00210605 Access Denied.  You do not have the appropriate permissions to perform this operation.
org.alfresco.repo.security.permissions.AccessDeniedException: 00210605 Access Denied.  You do not have the appropriate permissions to perform this operation.
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:48)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:167)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy45.getStoreFreeSpace(Unknown Source)
        at org.alfresco.filesys.repo.ContentDiskDriver.getDiskInformation(ContentDiskDriver.java:3972)
        at org.alfresco.jlan.smb.server.ProtocolHandler.getDiskInformation(ProtocolHandler.java:157)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.procTrans2QueryFileSys(NTProtocolHandler.java:4036)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.processTransactionBuffer(NTProtocolHandler.java:1779)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.procTransact2(NTProtocolHandler.java:1606)
        at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:232)
        at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1366)
        at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1458)
        at org.alfresco.jlan.smb.server.nio.NIOCIFSThreadRequest.runRequest(NIOCIFSThreadRequest.java:105)
        at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:153)
        at java.lang.Thread.run(Thread.java:619)
Caused by: net.sf.acegisecurity.AccessDeniedException: Access is denied.
        at net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86)
        at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:394)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:125)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
        … 19 more