Fernando Rowies wrote:
>
> Logged as a regular user, trying to compile the file test.cpp I receive
> the following error msg:
>
> $ g++ test.cpp
> /usr/bin/ld: cannot open output file a.out: Permission denied
> collect2: ld returned 1 exit status
>
> However if I compile as root it's ok.
> How can I modify permissions if this is the problem?
>
you're trying to compile (= generate files) in a directory where your
'regular user' has no write permissions. So, you've got 2 options,
either copy the file you're trying to compile to a directory where
you've got write access, or change the permissions for the directory,
which is done with:
chmod a+rwx directory_name
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list