How to set mode using file resource when file has symlink

I am trying to set mode of a file which has symlink, when i am setting the mode as ‘0777’ it is setting mode even for source file.

I tried using ‘manage_symlink_source’ attribute, when i set it to false i am getting exception. Is there any other way to handle this.

What you describe sounds like standard Linux behavior.

The permissions on symbolic links are basically always ignored; pretty much all permissions operation on the symlink are passed on to the destination.

Kevin Keane
Whom the IT Pros Call
The NetTech
http://www.4nettech.com
Our values: Privacy, Liberty, Justice
See https://www.4nettech.com/corp/the-nettech-values.html