ONTAP Discussions

find the path of a specific file

grocanar
2,467 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
2,419 Views

For me it is working properly :

 

dbenadib_0-1710424527423.png

 

View solution in original post

6 REPLIES 6

dbenadib
2,424 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
2,419 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
2,420 Views

For me it is working properly :

 

dbenadib_0-1710424527423.png

 

grocanar
2,415 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
2,413 Views

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

grocanar
2,412 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