This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[SOLVED] Trying to create new folder in htdocs

ozstar

Sun Dec 08, 2019 12:26:31 am

Hi,

Newby here :-)

See in GUI the htdocs directory and want to create folder there for my web files.

Tried to right click and option was grayed out. Went to Terminal and got # privilege but still can't create.

What am I doing wrong please?

Thanks

ozstar

Sun Dec 08, 2019 5:31:21 am

Saw somewhere that this command would do it, but alas. no.

Code:
sudo chmod 755 -R htdocs


root@david-HP-Compaq-6000-Pro-MT-PC:~# cd /opt/lampp
root@david-HP-Compaq-6000-Pro-MT-PC:/opt/lampp# sudo chmod 755 -R htdocs
root@david-HP-Compaq-6000-Pro-MT-PC:/opt/lampp#


Also did this but still no access to create.

root@david-HP-Compaq-6000-Pro-MT-PC:/opt/lampp# sudo chown $USER:david /opt/lampp/htdocs/
root@david-HP-Compaq-6000-Pro-MT-PC:/opt/lampp# sudo chmod 755 /opt/lampp/htdocs/
root@david-HP-Compaq-6000-Pro-MT-PC:/opt/lampp#

Aravisian

Sun Dec 08, 2019 6:34:47 am

ozstar wrote:Hi,

Newby here :-)

See in GUI the htdocs directory and want to create folder there for my web files.

Will this help?:
https://www.computernetworkingnotes.com ... buntu.html

ozstar

Sun Dec 08, 2019 6:42:39 am

Thank you.

I'll see if I can my nut around that :-)

oz

ozstar

Sun Dec 08, 2019 10:08:52 pm

I tried instructs on that page which is nicely set out but it didn't work. Obviously me, not the instructions.

NAME
sudo chown $USER:david /opt/lampp/htdocs/
sudo chmod 755 /opt/lampp/htdocs/


GROUP
david@david-HP-Compaq-6000-Pro-MT-PC:/opt/lampp/htdocs$ groups
david adm cdrom sudo dip plugdev lpadmin sambashare
david@david-HP-Compaq-6000-Pro-MT-PC:/opt/lampp/htdocs$ $ls –ld /opt/lampp/htdoc


PERM TO CREATE FOLDERS
david@david-HP-Compaq-6000-Pro-MT-PC:/opt/lampp/htdocs$ sudo chown –R david:adm /opt/lampp/htdocs
[sudo] password for david:
chown: invalid user: ‘–R’
david@david-HP-Compaq-6000-Pro-MT-PC:/opt/lampp/htdocs$

Swarfendor437

Sun Dec 08, 2019 10:11:39 pm

Okay, when you use the chown command it is looking for a username, -R is not a user on your system, but David is! ;) :D

ozstar

Mon Dec 09, 2019 3:49:33 am

Thanks. Done !
Now to setting up a LAN to connect to our Win 10 LAN.
I'll start a new Thread.