LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-01-2003, 01:40 PM   #1
lonny
Member
 
Registered: Nov 2003
Posts: 46

Rep: Reputation: 15
Best way to update website?


I recently installed Mandrake 9.2. I have the apache webserver running under the var/www/html directory. The problem is that my user "bob" can only use the /home/bob directory. I would like to make bob's home directory to /www/html and also give him permissions to use this directory. How could I do this and what would I want to set the permissions of the /www/html/ directory to?
ex. drwxrwxr-x?
 
Old 12-01-2003, 01:51 PM   #2
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
You give "bob" read/write permissions he should be able to make changes to the /var/www/html directory.

if you run (as root) " chmod 777 /var/www/html " that should give bob the permissions he needs to make changes to your apache web files.

Hope this helps. Write back and let us know how you made out.
 
Old 12-01-2003, 02:07 PM   #3
lonny
Member
 
Registered: Nov 2003
Posts: 46

Original Poster
Rep: Reputation: 15
Yes it worked great! Thanks. The only other thing is I update my webpages through dreamweaver and ftp them to the server. The ftp client requires that the home directory for "bob" be /var/www/html. Currently when I ftp to the linux box it starts at /home/bob. Is there a command line argument for this also?
 
Old 12-01-2003, 02:35 PM   #4
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
You can change bobs home dir to /var/www/html Do this in Control Panel or User Manager. I haven't used Mandrake in a few years so not sure exactly what it is called or located in menus.

You do realize that chmod 777 on that dir not only gave bob rights, it gave EVERYONE rights to that dir, right?

You may want to also look at SSH, it offers SCP and you can copy to any dir you have rights to... See OpenSSH for details.
 
Old 12-01-2003, 03:11 PM   #5
lonny
Member
 
Registered: Nov 2003
Posts: 46

Original Poster
Rep: Reputation: 15
Yeah i was wondering that. Because in the argument chmod 777 /var/www/html there is no reference to bob at all. Should I have done something like chmod 777 "bob only" /var/www/html? Is this going to cause any security issues? Is this argument easily reversed?
 
Old 12-01-2003, 04:43 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Changing the perms to 777 on the html directory opens makes the directory writable by anyone (even nobody user). You may want to audit any of your dynamically generated content for possible security holes. Be careful if you ever delete Bob's account. You might accidentally delete his home directory and thus all of your content. You might want to leave Bob's home directory where it was and a) put him in a group that has write access to the content or b) make him the owner of the content.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Software 4 05-06-2007 11:27 AM
redhat linux update databse's type and utility like windows update services kamii47 Linux - General 1 04-18-2005 06:50 AM
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Distributions 0 10-13-2004 12:01 PM
write an update query in shell prompt to update the database in sqlserver suchi_s Programming 2 09-29-2004 08:27 AM
website update sikkalgopal LQ Suggestions & Feedback 1 09-11-2004 10:00 AM


All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration