Debian :: Chmod Permission Denied
Dec 11, 2015
I have setup my debian 8 web server.
For some reason I am having some issues with permissions of some images. They don't render because they are not set to 644. Now for some reason when I uploaded these files onto my shared hosting with cPanel the files work fine and permissions are fine. I can see there is a permission issue for the files locally on my Mac (OS X - El Capitan).
When I changes these locally on Mac the permissions go all weird and are prefixed with Custom, rather than mac-user-name: Read & Write, staff: Read, everyone: no access. then changes to custom: read & write etc. So then i tried changing permissions on web server see below and I get permission denied and after all the files are gone, i can't delete the images folder through SFTP or SSH. I changed back the image to 755 and tried deleting and still nothing. Not sure what the problem is. Before I chmod I checked that the images are set to the correct user and group as per the rest of the site.
So I try:
Code: Select alluser_name@debian:/var/www/html/_files$ chmod -R 644 images
and I get this return:
Code: Select allchmod: cannot access ‘images/box-icon.svg’: Permission denied
chmod: cannot access ‘images/ie-icon.svg’: Permission denied
chmod: cannot access ‘images/google-plus-icon.svg’: Permission denied
chmod: cannot access ‘images/mobile-ready-icon.svg’: Permission denied
chmod: cannot access ‘images/404.jpg’: Permission denied
[Code] ....
View 3 Replies
ADVERTISEMENT
Feb 25, 2009
I have stipped down the test to the basics and still can't get it to work.I have a file called test.php stored in /usr/share/data/audio (an aliased directory in apache). This file simply contains the code...
Code:
<?php
fopen('play.xml', 'w') or die("can't open file");;
[code]...
View 3 Replies
View Related
May 4, 2011
nfs mounted directory which is mounted rw. I and everyone else are members of a common group. We all have write permissions in the tree: All files and directories in the tree are in the common group. All directories are set to 775 and all files are set to 664 or 775, as appropriate.If a file is owned by someone else, even though the file and the directory are group writable, I get permission denied when I try to chmod the file.
Here's the command synopsis:
997 > ls -l portparms.txt
-rwxrw-r--. 1 bdaugher fc 4091 Sep 5 2003 portparms.txt
[code]...
View 2 Replies
View Related
Dec 23, 2010
I've a pb on a directory...Same pb with others users... fsck -y says fs is clean...Re-apply chmod +r doesn't works...Data are on local HD (not SAN)
View 1 Replies
View Related
Apr 27, 2010
I am desperately trying to recover two folders from a Freecom FSG 3 NAS. As far as I am aware it is running Linux 2.6 based on Snapgear. After working through the hardwares' recovery procedure a number of times, the state of the device appears to get worse and worse. So I have attempted to rescue the files by using a program called Putty to access the device over SSH.When I access the device using Putty I login as admin. The folders I need to recover are located in the home folder. Listing the contents of the directory I get...
/home $ ls -la
ls: ./.twonkymedia: Permission denied
ls: ./Sarah: Permission denied
[code]....
View 1 Replies
View Related
Mar 2, 2011
I am in the process of setting up a new server (Debian - Lenny - now updated to Squeeze) and every things were going fine. But unfortunately from today , whenever a user login to ftp, it says
550 permission denied and not able upload / edit or remove any files ( i am able to see all files and folders)
Yesterday it was working fine..
I tried using bot Pure Ftp and Proftp and the issue is common
What I am trying to do is
add a unix user exalmple through adduser command with default directory for the user as /var/www/example.com (shell enabled)
owner of example.com is example
and using the above user name and password to ftp files to the folder
View 1 Replies
View Related
Dec 15, 2015
I have installed Nginx with PHP-FPM on Debian 8 to learn more about Linux permissions. Nginx is run as www-data user.
I have created a simple PHP script that outputs the date. I have set the permission as 000 (no permission at all) and it is root:root. How come I can still run this script in the browser without getting access denied? The script is inside a folder with world execution. When removing the world execution permission, the script can't be run. How does this all connect to each other?
View 2 Replies
View Related
Feb 12, 2016
I try to do SVN checkout,looks like I'm facing this issue.I can ssh using putty to this server(banana).But from machine to machine it show same error.
SVN checkout
zr@banana [104]$ svn co $SVNROOT/deployment/new_debian_install
Permission denied (publickey).
svn: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: Network connection closed unexpectedly
================================
ssh machine to machine:
zr@banana [105]$ ssh apricot
Permission denied (publickey)
View 1 Replies
View Related
Dec 8, 2010
when i logging with root then i saw message "permission denied" Then i changed root shell directory "usermod -s .usr/ root" but it says "permission denied" again. what is the default shell directory, or what can i do for change permissions.
View 1 Replies
View Related
Jan 27, 2010
mounting my windows partition.. I've got it set up under /etc/fstab, but anytime I try and open it (as local user) I get permission denied.
[Code]...
View 1 Replies
View Related
Apr 12, 2011
I have an apache installation with /var/www/bob as the document root and the only site served up. I have bob as the directory's owner, and he is able to upload his files to that folder via ftp (vsftpd on the server). When a browser tries to access the pages, it simply gets a 403 forbidden. The problem occurs when apache2 tries to access the files bob uploads. The www-data user (Apache daemon) gets permission denied when I try to cat bob's files in the shell, so it's purely a permissions issue. What I can't figure out is how to give the Apache daemon the ability to read bob's files while also making certain it does not have the ability to modify any of them.
View 1 Replies
View Related
Jan 29, 2016
Distro: Debian 8 Xfce
GPU: NVIDIA GTX 950M (hybrid with my 4th gen intel i7 I believe)
BIOS: Megatrends version 2.15.1236
New Debian/Linux (in general) user here! I've done a lot of google self-aid and have yet to yield any successful results. I currently just did a fresh install and followed ONLY the steps listed on the Wiki for Bumblebee [URL] .... Scrolling down to the common issues, I also amended the /etc/bumblebee/xorg.conf.nvidia file with a "Screen" section:
Section "Screen"
Identifier "Default Screen"
Device "DiscreteNvidia"
EndSection
View 6 Replies
View Related
Mar 16, 2009
I've all of a sudden been getting permission denied for almost everything I try to do. Upon logging in, I get a huge amount of "/dev/null: Permission denied"
The only way I can manage to get to the terminal is by Ctrl-C. It never brings up the command line, unless I do that.
If I try to startX, I get errors, also saying permission denied, and then one that says
Code:
I also get many "failed" errors when booting, most of them saying that a file could not be found/located.
Check the thread link at the top for other information in the first post.
I could reinstall Debian, but the computer I am using is a Libretto 110CT (64MB RAM), which has only a PCMCIA drive, for which I have a USB port replicator. There is no CD drive.
It was also a custom install fitted for the computer, so I'd rather not have to set everything up again, nor would I know how to exactly, as I've never done it before.
View 7 Replies
View Related
Jan 18, 2011
When I attempt to run a ./checksetup.pl I am getting the following error message.
Creating /var/lib/bugzilla3/data/pdsphaseibugs/attachments directory... mkdir /var/lib/bugzilla3/data/pdsphaseibugs/attachments failed: Permission denied at /usr/share/perl5/Bugzilla/Install/Filesystem.pm line 385.
The script su to www-data and here is a copy of the directory the script is executed from :
fuidsg46:/usr/share/perl5/Bugzilla/Install# ls -la
total 276
drwxr-xr-x 2 root www-data 4096 2011-01-11 12:17 .
drwxr-xr-x 16 root root 4096 2011-01-11 12:17 ..
[Code]....
View 1 Replies
View Related
May 19, 2010
I cannot get access to my external hard disk. It says as in the "SUBJECT" above. What should I do? I installed Debian XFCE testing.
View 5 Replies
View Related
Jan 5, 2010
Tryin to update guest additions to match new host. Change fstab to allow exec. Still get permission denied.
debian:/home/bill# cd /cdrom
debian:/cdrom# ls -lh
total 30M
dr-xr-xr-x 3 root root 2.0K 2009-12-17 07:37 32Bit
dr-xr-xr-x 2 root root 2.0K 2009-12-17 07:37 64Bit
-r-xr-xr-x 1 root root 217 2009-12-04 04:06 AUTORUN.INF
[Code]...
View 5 Replies
View Related
Jul 9, 2011
Here is a copy of my fstab # /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
[code]...
View 6 Replies
View Related
Aug 27, 2010
I'm using my AntiX M8 Live CD to repair a hosed Windows installation, I downloaded ComboFix to ~/home/Desktop and now I'm trying to copy (cp) the file to /mnt/ where I have already mounted the NTFS Windows partition. NTFS3G is integrated into AntiX, right? So why am I having permissions errors?
Code:
mepis1:/home/demo# cp -v Desktop/ComboFix.exe /mnt/SwSetup/
`Desktop/ComboFix.exe' -> `/mnt/SwSetup/ComboFix.exe'
cp: cannot create regular file `/mnt/SwSetup/ComboFix.exe': Permission denied
mepis1:/home/demo# So far, I can read it without any errors in Terminal and navigate through the whole filesystem in ROX-Filer, Do I need to edit /etc/fstab to be able to write to an ntfs drive?
View 6 Replies
View Related
Dec 12, 2010
I had debian lenny running smoothly for a while, then I think the power went out and the computer didn't shutdown smoothly. The next time I started it up I ran into this error: Checking root file system.../etc/rcS.d/S10checkroot.sh: line 274: /sbin/logsave: Permission deniedfailed (code 126)This happens in single user mode as well. I've tried fscking all my partitions but it doesn't help. I've booted in bypassing the normal init and changed the permissions of /sbin/logsave to 777 and during boot I get a message of: The file system check corrected errors on the root partition but requested that the system be restarted. failed!Then the system just reboots automatically without letting me to anything.
View 7 Replies
View Related
Apr 9, 2010
I ftp into the server and see the files, but when i try to make a directory or upload a file it returns an error saying that permission is denied.I am wanting the users to be able to log on with their user account and then be able to have full control over their directories. What can i do to fix this problem?I have enabled port forwarding for ftp. What else is there i can do? If you need any extra information, let me know! I would like to get this fixed asap!Here is my vsftpd.conf file.
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
[code]....
View 4 Replies
View Related
Apr 5, 2011
how to get permission by chmod
View 8 Replies
View Related
Apr 24, 2011
If I am not the file' owner or root, can I use chmod to change the file permission?
Assume I have group/write access to the file, e.g. 775
View 2 Replies
View Related
Feb 10, 2010
What does chmod 000 do?when i create a chmod'd file with the 000 permission what happens?I tried creating a file with 000 permissions, and I was still able to read and write to it. So what what does chmod 000 actually do?
View 6 Replies
View Related
Sep 3, 2010
I recently installed Ubuntu 10.4 on an Intel machine. The machine also has Windows 7. So some of the partitions of the hard drive are Windows compatible (NTFS). They are all mounted when system is booted with Ubuntu and all files are accessible. However, when I try to change permission or limit access to a group, CHMOD command does not work. It doesn't return any error and everything seems to work fine but I can't change any permission.
View 8 Replies
View Related
Apr 14, 2011
How can I give execute permission to chmod command from run level 3.Because in GUI mode we have the execute option in the properties of file. E.g. I gave following command
chmod -x chomod
After that I want to give the execute permission (x) to chmod command again but how from command prompt?
View 5 Replies
View Related
Apr 11, 2011
that works to disallow non-owners from renaming the file, but what I wouldlike to do is disallow EVERYONE ( including the owner of the file ) fromediting, moving, or changing the filename once it is created. the only personwho should be able to make those changes is a special user.
View 13 Replies
View Related
Sep 22, 2010
I am trying to ssh into one of my boxes and I keep getting a returned error "permission denied" (publickey, password).
I know that I am using the correct password. I have also set my router to forward the port to the correct IP. I am using the login option-l to specify the user that I want to log into the server as. On another box I removed some options from the ssh_config so that it would only use password authentication and THIS WORKED. On the new box, however, I do not see any option for removing the other authentication methods. Can I stop the ssh from the client from trying to use the other methods of authentication (I'm guessing this is what the publickey error is)?
By the way, both machines can ssh localhost.
View 3 Replies
View Related
Mar 1, 2011
I have a user (let's call him John) who is not able to list contents of several 777 directories even though it appears he has permission to.
Case in point, as root:
Code:
Code:
If I use ls -a or strictly ls as john, I can list the contents of the nss directory:
Code:
That says to me that I have an issue listing permissions. Fine, I don't really need john to be able to list permissions. I want him to have rwx access to /media/nss/ENG which as you can see from my listing as root shouldn't be a problem since the perms on that dir are 777.
I am able to CD into the ENG directory or any other directory or subdirectory in /media/nss that has equivalent 777 perms, but once in the directories I can't list the contents:
Code:
I can get anywhere and do anything I want under the media/nss folder as john, except listing files. I even tried using an ACL i.e.
Code:
Why this isn't working?
View 8 Replies
View Related
Apr 12, 2011
I am trying to give an SSH user on my server permission to compile C exploit with gcc, and I have had no luck. Every time i try to run gcc i get: "sh: /usr/bin/gcc: Permission denied. Has anyone else had this problem with this ?
View 2 Replies
View Related
Jul 17, 2009
I compiled a hello-world code under /media/ext3-datadisk/summary/prog
where ext3-datadisk is on an external drive.
But I cannot run it.
Quote:
I am not bashing CentOS 5.2, but I don't have such problem with ubuntu 8.04.
View 5 Replies
View Related