NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

find the path of a specific file

grocanar
8,156 Views

Hi

I suspect some permissions acces on a file in a cifs server. 

I would like to check the effective access on the netapp with the command 

 

vserver security file-directory show-effective-permissions

 

but i don't find a way to find the path of the file. 

It s a really old old file with some strange charset on the name. 

 

I can't use the cifs share to do that as there s a lot of cross domain and nested groups involved. Then i don't reallt know on which groups this user is member off 

 

I can access the file on the explorer of system explorer. But i don't find a way there to either

- get the path i would able to paste in the cli command

- find if a specific user has acces to this file or not. 

 

At the end i didn't find a way to list the content of a volume from the cli 

 

Does someone know how i can espace from this trap? 

1 ACCEPTED SOLUTION

dbenadib
8,106 Views

For me it is working properly :

 

dbenadib_0-1710424527423.png

 

View solution in original post

6 REPLIES 6

dbenadib
8,111 Views

Hi,

 

Which ONTAP version it is ? since ONTAP 9.7 you can list files from GUI or RESTApi

 

dbenadib_0-1710422280793.png

 

If it is older, using ls under node can help

 

dbenadib_1-1710422456813.png

 

HTH

 

 

grocanar
8,104 Views

Hi 

thanks your answer 
i m on 9.13.1P6

I wish i would be able to use ls but i can 't. 

the probleme with the REST API and with the GUI is that i can"t run the command 
vserver security file-directory show-effective-permissions

or equivalent one. 
That s my problem 

dbenadib
8,107 Views

For me it is working properly :

 

dbenadib_0-1710424527423.png

 

grocanar
8,096 Views

Hi

It could work for me too if i can find the path of the file. 
I have a problem of encoding for the file. 
when i scan with xcp i got the following output 
bureautique/Produits chimiques Ier étage/FDS/CoenzymeA sodium salt hydrate_C3144_files/ec.js

 

I guess this file use a wrong encoding for the path 

dbenadib
8,094 Views

That's why I talked about RESTApi or using the Gui to get the exact path !

grocanar
8,092 Views

Well at the endi found the good way to cut and paste the path and the filename from the GUI. 
it was a bit tedious but it works

thank for your help 

Public