Your best bet is to try to ls -al the file to show the permissions.

The way you're writing up your command makes no sense.

sudo -i /etc/apache2/sites-available/000-default.conf-bash: /etc/apache2/sites-available/000-default.conf: Permission denied


It would appear you're trying to execute the 000-default.conf file, this file doesn't have permissions to be executable by you or in this case, root(sudo -i su's to root). I don't think it should either. You should be editing the file, not trying to execute it.

I would suggest running sudo -i ls -al /etc/apache2/sites-available/000-default-conf  or sudo -i vi /etc/apache2/sites-available/000-default-conf  to edit it. I used vi, but you can switch that out with your favorite editor.

Thank you,
Greg Borbonus
*Nix Server administrator
832-699-0461
Skype: greg.borbonus
http://www.linkedin.com/in/gregborbonus/

On 6/18/2018 2:58 PM, Macksymil Marketplace wrote:
When I try to use it without the sudo I get the same permission error.

/etc/apache2/sites-available/000-default.conf

-bash: /etc/apache2/sites-available/000-default.conf: Permission denied


also I can't access the config file to get to make any changes at all. Also I have very limited knowledge of using linux.
Please assist.
Thank you.

On Mon, Jun 18, 2018 at 2:53 PM @lbutlr <[email protected] <mailto:[email protected]>> wrote:

    On 18 Jun 2018, at 13:21, Macksymil Marketplace
    <[email protected] <mailto:[email protected]>> wrote:
    > sudo -i /etc/apache2/sites-available/000-default.conf-bash:
    /etc/apache2/sites-available/000-default.conf: Permission denied

    Not sure why you’re using sudo?


    The error in the screenshot specifically points to line 31 in the
    conf file above, so…

    Also, what version of apache?

-- Humans are always slightly lost. It's a basic characteristic. It
    explains a lot about them.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    <mailto:[email protected]>
    For additional commands, e-mail: [email protected]
    <mailto:[email protected]>


<<attachment: gregborbonus.vcf>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to