i followed this article sqlshack link to change the database file default location. i completed all the steps, but after when i'm trying to create DB i encounder below error. i also tried this stackoverlow post but negative response
error :
CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file '/home/user/Templates/sampletable.mdf'.
how can i resolve this issue?