[SOLVED] Giving Access to /var/www/cgi-bin without typing root password
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Giving Access to /var/www/cgi-bin without typing root password
Hi,
I am teaching CGI programming. Students have to copy CGI scripts in /var/www/cgi-bin. This requires root access. Kindly guide me with some technique so that students do not have to type root password.
Hi,
Thanks for your response. I tried your command, it executes but still i am not able to copy as lab6. Again it copying only for root. I am using Fedora 20.
Code:
[root@localhost httpprg]# setfacl -m u:lab6:rw /var/www/cgi-bin
[root@localhost httpprg]# exit
exit
[lab6@localhost ~]$ pwd
/home/lab6
[lab6@localhost ~]$ cd Sir
[lab6@localhost Sir]$ ped
bash: ped: command not found...
[lab6@localhost Sir]$ ls
dbprg hello.cgi hello.pl Hello.pm httpprg hw_client.pl soap2.pl
[lab6@localhost Sir]$ cd httpprg
[lab6@localhost httpprg]$ ls
first.pl second.pl
[lab6@localhost httpprg]$ cp second.pl /var/www/cgi-bin
cp: cannot stat ‘/var/www/cgi-bin/second.pl’: Permission denied
[lab6@localhost httpprg]$ who am i
lab6 pts/0 2014-09-17 05:38 (:0)
[lab6@localhost httpprg]$ ls
first.pl second.pl
[lab6@localhost httpprg]$ cp second.pl /var/www/cgi-bin
cp: cannot stat ‘/var/www/cgi-bin/second.pl’: Permission denied
[lab6@localhost httpprg]$ su
Password:
[root@localhost httpprg]# cp second.pl /var/www/cgi-bin
[root@localhost httpprg]#
Hi,
Thanks for helping me. This problem is solved. However i would try the information provided for creating individual based cgi-bin directories which can be accessed by same cgi-bin name.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.