Subscribe
Accepted Solution

Access denied on a Pre login script on a cifs share

Hello,

We have an issue with a pre login script. Each time a user start a computer we have a script that is running (launched by a GPO) before the user log on. So basically there's no AD user that is running this script. The problem is that this script is writting a file on the NetApp share, but as there's no AD associated we have an access denied:

Fri Nov 16 13:23:41 CET [filer: sectrace.filter.denied:info]: [sectrace index: 1] Access denied because 'Write' permission (0x2) is not granted on parent directory (Access denied by the share-level ACL) - Status: 1:47249883136:32:7 - 10.166.21.114 - NT user name:  - UNIX user name: (-1) -  - Path: /vol/cifs_divers/Prg/prg/a_log/SapLogon-Update.log

How can we by pass this? We tried to put Anonymous Logon on the share and the NTFS permission, but it's still not working. Do we need to change someting on the usermap?

Many thanks for your help.

Renaud

Re: Access denied on a Pre login script on a cifs share

Well it said : (Access denied by the share-level ACL)

Have you checked your Share level permissions ? Can you provide the output for cifs shares <share-name-you are referring to>

Thanks!

Re: Access denied on a Pre login script on a cifs share

Hello Ogra,

Well ok but which user should be added as no NT user is passed on the connexion??

...  NT user name:  - UNIX user name: (-1) -  - Path: /vol/cifs_divers/Prg/prg/a_log/SapLogon-Update.log

On the share ACL we tried to add "Anonymous Logon" but I think (-1) in unix world match "Nobody". Is it correct? How can we translate this in the NT world?

Thanks!

Re: Access denied on a Pre login script on a cifs share

From what I understand you are trying to map Unix User to NT user ? Is that correct ?

Re: Access denied on a Pre login script on a cifs share

Hello Ogra,

Yes exactly. And it's what we finally did. Map the "Null" NT user to a Unix user, so we can access our volume even if no NT user was passed. We created a new Unix user and in the usermap.cfg we added:

192.168.0.0/255.255.0.0:"" => newunixuser

Now the script is able to write on the filer.

Many thanks for your help.

Regards.

Renaud

Re: Access denied on a Pre login script on a cifs share