LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-09-2007, 03:29 AM   #1
rendani
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Rep: Reputation: 0
How to change permissions


Hi all, i still a beginner in Linux and i want to change the permissions of "var/www" for other groups. I tried to type the following: 'sudo chmod 777 var/www' but it says "no sucj file or directory". Is there a problem with my command? How to do this?? When i run this command, must i be in that directory? Please help. The reason i wanted to change this was that i was trying to copy some stuffs to var/www and iwas unable. I used this command 'sudo cp /home/rendani/ipermit_db.20070615.tgz /var/www' When i go to that directory, i couldnt find the file. Is my command right??? What else can i do??

Last edited by rendani; 07-09-2007 at 04:27 AM.
 
Old 07-09-2007, 03:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
"var/www" is not a valid path, unless you were already in the root directory, where it is a relative path, i.e. taken from where you currently are. you should make it an absolute path, "/var/www" with the leading slash.

and 777 or /var/www is a *VERY* *VERY* bad idea btw...
 
  


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
How to change permissions... mitchell7man Linux - General 6 05-31-2007 02:17 PM
Change permissions rust8y Solaris / OpenSolaris 4 11-20-2006 06:10 AM
How to change permissions? SonoranFun Linux - Newbie 4 11-02-2004 11:10 AM
Can't change permissions LitlJay Linux - Software 9 05-21-2004 02:41 PM
How Can I Change Permissions monkeymartin Linux - General 1 03-25-2003 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:10 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
Open Source Consulting | Domain Registration