Post

LinuxLinux

s
sri kanth

Posted on 27th January 2023|15 views

0
votes

Permission Denied Linux

How to fix the permission denied problem in Linux?

Answers
P
sumana reddy

Posted on 27th January 2023

  • Utilize the cd command to obtain the directory within your source code. Utilize TAB to assist you. If you perform ls -lh, you will notice a menu of potential paths to catch and records to execute.
  • If you have gained the blocked record execute chmod +x FILENAME (substitute FILENAME with the source code name of your file).
  • If you hold various blocked files, perform chmod +x * to open all files in the prevailing directory. Nevermore chmod +x unsafe or vulnerable files.
  • By Perform ./FILENAME YOUREVENTUALARGUMENTS your executable file will be executed.
  • Memorialize that if your compiled program attempts to read or write outside your home directory, you will require to execute that as root by utilizing sudo ./FILENAME YOUREVENTUALARGUMENTS.

If you want to learn more about Linux Enroll Now: Linux Training

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos