PDA

View Full Version : What the heck is going on with this website?


LoneWolf121188
08-28-08, 09:05 PM
So I became the new admin for our Air Force ROTC detachment website a few days ago, and my first reaction was: wtf? To add any files to the website, I have to connect with an FTP client (using SFTP), then upload all the files to one specific directory. If I upload them anywhere else on the site, I get a permission denied error. Once there, I use PuTTY (well, actually just Terminal since I'm on a mac) to SSH into the website, then move the file from that directory to its proper place on the site. However, I have to put sudo in front of every command that involves a directory or file not in that one "special directory". So I can't just do "mv special/index.html home/people", I have to do "sudo mv special/index.html home/people". The weird thing is, it never asks me for a username or password when I do a sudo command. I tried giving all files and folders on the website 777 permissions, but that didn't fix it. Is there a way I can get it so that I don't have do put sudo in front of everything, or even better, just use my FTP client to manage the website? I was thinking of using sudo to give my user (the one I log in with) full rwx permissions for all files and folders, but I have no idea how to do that.

RJARRRPCGP
08-30-08, 03:49 PM
It sounds like the Linux or Unix distro has a broken sudo.

This can occur, especially if you're using Ubuntu and it's earlier than Dapper Drake. I can't recall having problems with sudo when using Dapper Drake and later versions.