Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm trying to access a folder in Linux Apache server and it's coming up with Authenticatio Required prompt.
How do I reset or find this login details in Cent OS VPS server?
Is this made through htpasswd and if so, what is the name of the file created and where can I look this up?
Have a look in the Apache configuration files, located possibly in /etc/httpd/ folder and look for a block of lines like these (probably in a VirtualHost block):
AuthType Basic
AuthName "Protected Files"
AuthUserFile /etc/httpd/passwd/passwords
Require user joe
Then the AuthUserFile line will tell you where is the file you need to edit to add/remove/update the user through the htpasswd command, i.e. to update 'joe' password
htpasswd /etc/httpd/passwd/passwords joe
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I'm running Raspbian Lite on a Raspberry Pi 2. I'm trying to have vsftpd set up with one user called admin to have root access for FTP, while all other users (such as filetransfer) get redirected to their home directory. Any help would be greatly appreciated :)
I gather you're using vsftpd's chroot_local_user setting to keep users within their home directories. If that's enabled, you can use the chroot_list_file setting to pass a file containing the users you don't want to be locked in their home directories.
You can find out more on the vsftpd manual page.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I recently acquired a project from a former colleague, but the only information he gave me was the SSH key for a server and a bitbucket repository. I need to access the FTP of the server so I can change the files of the website.
I have zero experience with SSH or console commands. I have the repository but I don't know how to upload it. A friend of mine said that it's possible to pull a repo to the server, but I don't know how to even transcend in the folders of the server. I have just the console.
It says that the server's image is - ubuntu-1604-xenial-v20180127
And these are the only options I have - http://prntscr.com/p31inf
Also note that the website is running on Magento and I have no idea how it works. I'm a wordpress developer.
What you want is sftp: https://www.digitalocean.com/community/tutorials/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server
So just use a ftp-client like filezilla and select sftp as protocol
Btw, magento is a little bit different than wordpress. Good luck ;)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
im using go-daddy to learn web hosting ...
so i had problem and i reset my account because i thought something change some settings in the server..
after i reset the account i still have the same problem that my web root DIR is in (ht-docs owned by root) which i cant edit ...
this is the effective root directory .. i dont know why its not (public_html)
i ve allready asked in godaddy before about this and figured out my self the root directory by searching html code in all files in my server
(grep -isr "html code" /*)
https://uk.godaddy.com/community/Managing-Web-Hosting/public-html/td-p/51705
note: im newbie in linux .. i've just purchased godaddy account to learn web hosting ..
Why do you want to edit stuf in the default htdocs dir while the document root is set to /public_html/www in your user dir, according to the control panel screenshot you provided?
Look for public_html/www in your user dir, it should be ~/public_html/www, which is a shortcut to /home/YOUR_USER/public_html/www
PS: be careful asyour last screenshot shows /home/YOUR_USER/public_html as the document root, while the control panel one as www on top of it (but it might just be to handle subdomains)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have a Ubuntu 12.04 machine that I can only access using SSH. On this machine I have two users and I want to limit the access to certain files to one of these users.
Basically I want that user to be able to access only its home directory and nothing more. I know that by removing the rx permissions to other home directories for others is one option but I wanted to know if there is another way, a configuration file where I can tell that my user can only have access to that folder.
Thanks.
chrooted jail is the answer.
Like: https://www.howtoforge.com/chrooted-ssh-sftp-tutorial-debian-lenny
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I found these following lines in my .htaccess file.. I've replaced my website name with example.com. I didn't add this to my .htaccess file...
AuthName "example.com"
AuthUserFile "/home3/examplec1/.htpasswds/public_html/example.com/passwd"
What is this and why was it added to my .htaccess file? Is it possible someone has downloaded the public_html file?
If i did get hacked, how do i prevent from getting hacked again?
I did try to protect a folder(can't remember which one) previously in cpanel, would this alter my .htaccess?
This probably was added by your hosting provider or by someone who also has access to your environment. Adding a protection cannot seriously harm you. Removing or changing a protection would be worse.