I can not creat directory on var\www\ I am the owner

Asked by rahi matini

I can not creat directory on var\www\ I am the owner.

I see my name as adminestrator but still I can't create directory

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
rahi matini
Solved:
Last query:
Last reply:
Revision history for this message
Warren Hill (warren-hill) said :
#1

You are an administrator not the owner so you just need to use sudo in a terminal

-------------------------------------------------------
sudo mkdir /var/www/folder_name
-------------------------------------------------------

replace folder_name with the name you would like for your folder

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

if you run:

sudo -i

you can move data as you wish. Your user is only a user, you will need sudo to move data in. If you have a desktop OS, use:

gksudo nautilus

Revision history for this message
rahi matini (rahimatini) said :
#3

#1

Thanks Warren , ofcours I can create folder by terminal , but problem is I need trasfer some files from other server and I have no permisson!
I mean I want when I right click on www , it shows me create directory tab.

#2

Thank you. that command just give me one time permissin and after again back in the same situation.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

use sudo when you want access to the folder.

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#5

You can change the permissions in this directory. No matter who the owner is , maybe you are the owner but you don't have the permissions for write access in this directory.

Check the results of this command

    ls -ld /var/www/

and change the permissions in this folder (or any other folder inside this folder) for you (your user).

You can do this with chmod.

    man chmod

for manual page..

If you want more help.. post back here.

Regards
 NikTh

Revision history for this message
rahi matini (rahimatini) said :
#6

Thanks NikTh, could you please write to me a chmod command for changing
permission.
for example >chmod -u -w /var/www

Thanks inadvance

******

**

*Rahi Matini*

*Software Developer and Analyst\** **Internet Solutions Developer*

P :778 996 5761 6046051228 702-1155 beach Ave. Vancouver,BC,Canada
**
www.vancouverwestendsoftware.com
<http://www.rahimatini.com/><http://www.rahimatini.com/><http://www.rahimatini.com/>

On Wed, Apr 24, 2013 at 3:51 PM, NikTh <<email address hidden>
> wrote:

> Your question #227397 on gnome-terminal in Ubuntu changed:
>
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/227397
>
> NikTh proposed the following answer:
> You can change the permissions in this directory. No matter who the
> owner is , maybe you are the owner but you don't have the permissions
> for write access in this directory.
>
> Check the results of this command
>
> ls -ld /var/www/
>
> and change the permissions in this folder (or any other folder inside
> this folder) for you (your user).
>
> You can do this with chmod.
>
> man chmod
>
> for manual page..
>
> If you want more help.. post back here.
>
> Regards
> NikTh
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/227397/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
>
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/227397
>
> You received this question notification because you asked the question.
>

Revision history for this message
rahi matini (rahimatini) said :
#7

I still have problem and can't change permission

where is my mistake on command below:

>sudo chmod -u 755 /var/www

Revision history for this message
rahi matini (rahimatini) said :
#8

My problem solved by
> sudo chmod _R 777 /var/www/

Thanks everybody

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

777 is not secure in any way and may expose your website to weakness which may be attacked

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#10

@actionparsnip has right. Change the permissions again . To give full access to Others (7) is very-very dangerous.

You can make it 775 , so others have only the read and execute permissions (but not write permissions = change or delete something).

Revision history for this message
rahi matini (rahimatini) said :
#11

Thanks

******

**

*Rahi Matini*

*Software Developer and Analyst\** **Internet Solutions Developer*

P :778 996 5761 6046051228 702-1155 beach Ave. Vancouver,BC,Canada
**
www.vancouverwestendsoftware.com
<http://www.rahimatini.com/><http://www.rahimatini.com/><http://www.rahimatini.com/>

On Thu, Apr 25, 2013 at 2:21 PM, NikTh <<email address hidden>
> wrote:

> Your question #227397 on gnome-terminal in Ubuntu changed:
>
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/227397
>
> NikTh posted a new comment:
> @actionparsnip has right. Change the permissions again . To give full
> access to Others (7) is very-very dangerous.
>
> You can make it 775 , so others have only the read and execute
> permissions (but not write permissions = change or delete something).
>
> --
> You received this question notification because you asked the question.
>