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.
I am doing a server for my Linux class, and created a file in my home folder. I was told to move it into my /var/www/html/ folder but every time i do it says permission denied. I did the chmod on my original folder still no go, I don't know what else to do if anyone can help me please.
I am logged in as a user, and the I keep getting "Error Moving File; Permission Denied" It's a file that I have to create for a web home page in sea monkey program
Are you trying to move it as your user or as root? Your subject makes it sound like root is getting the permission denied message, but your last post makes it sound like you're just trying to move it as your user.
yes I am trying to move it as a user, but I am not in terminal just in the menu interface. I did chmod on the file and still no go, and wondering if theres any other way?
The problem isn't the permissions on the file you're moving, the problem is the permissions on the directory you're trying to move it into. Your user doesn't have write access to that directory, which is why you can't move anything there. Two options:
1 - Add write permissions to /var/www/html/ for your user
2 - Move the file to /var/www/html/ as root
You need to become root either way
Last edited by suicidaleggroll; 03-07-2012 at 04:50 PM.
When you installed Fedora, you set up a root password. You should just need to open a terminal (should be in one of the menus, I assume you're using Gnome?), type "su -", enter the root password you set up when you installed the OS, and then move the file like normal:
I tried that, the problem is logged in as root there is no index.html it is only under user, because it wasn't created in vi it was created in seamonkey browser, it is a web server i am creating
The file will always be in the same place, regardless as which user you are logged in. If you saved in in your user's home directory (for example /home/jace/index.html) you will also find it there when you are logged in as root.
WOOOOOHOOOO!!! ok thanks I found it and moved it, thanks for the help. I always confuse myself and it's good to have someone else just give me the pointers to get in the right directioin! thanks AGAIN my linux GURUS
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.