0

This seems basic & easy, but man...i got headache here.

I followed this question : How to save php file in /opt/lampp/htdocs without going to terminal and type sudo gedit?

I want to be able to do copy-paste to the /opt/lampp/htdocs. This is what i did on terminal :

  1. See current user & group : users -> result : tama tama
  2. sudo chown tama:tama /opt/lampp/htdocs
  3. sudo chmod 700 /opt/lampp/htdocs

The owner of the files has changed successfully, but i still cant do paste there. (greyed out)

Result of stat /opt/lampp/htdocs :

  File: ‘/opt/lampp/htdocs’
  Size: 4096        Blocks: 8          IO Block: 4096   directory
Device: 805h/2053d  Inode: 5505136     Links: 11
Access: (0700/drwx------)  Uid: ( 1000/    tama)   Gid: ( 1000/    tama)
Access: 2014-11-07 13:51:31.488418404 +0700
Modify: 2014-01-27 17:37:56.969253666 +0700
Change: 2014-11-07 13:50:37.232417525 +0700
 Birth: -

Result of ls -l /opt/lampp/htdocs :

drwxrwxr-x 3 tama   tama    4096 Nov 13  2013 alif
-rwxrwxr-x 1 root   root    1444 Jun 10  2013 applications.html
-rwxrwxr-x 1 root   root    2142 Apr 29  2013 bitnami.css
drwxrwxr-x 6 tama   tama    4096 Jan 27  2014 bluezsteak
drwxrwxr-x 4 tama   tama    4096 Nov 11  2013 budi
-rwxrwxr-x 1 root   root   30894 Mei 11  2007 favicon.ico
drwxrwxr-x 8 tama   tama    4096 Okt  1  2013 gabdb
drwxrwxr-x 2 root   root    4096 Okt  9  2013 img
-rwxrwxr-x 1 root   root     256 Peb  6  2009 index.php
drwxrwxr-x 4 tama   tama    4096 Nov 14  2013 jewelry
drwxrwxr-x 8 tama   tama    4096 Okt 13  2013 kmbd
drwxrwxr-x 2 daemon daemon  4096 Okt  9  2013 webalizer
drwxrwxr-x 7 root   root    4096 Okt  9  2013 xampp

Please kindly help me. Thanks for you help.

2 Answers2

4

Try recursively chown
sudo chown -R tama:tama /opt/lampp/htdocs

0

Try chown sudo chown -R username:users'Group /opt/lampp/htdocs

it will work for sure but rather than /opt/lampp/htdocs, change ownership of /opt/lampp/ only.