Ubuntu Security :: Chmod Does Not Change Permission?

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


ADVERTISEMENT

Security :: Permission Denied When Trying To Use The Chmod Command?

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

General :: Use Chmod To Change The File Permission?

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

Fedora Security :: Change Folder Permission?

Jul 5, 2011

Dear Friends, For Upload a Web Site in my Local Fedora using Apache I need to use the /var/www/html folder.But I cant add/edit anything on html folder

View 3 Replies View Related

General :: Get Permission By Chmod?

Apr 5, 2011

how to get permission by chmod

View 8 Replies View Related

Ubuntu :: When Create Chmod'd File With 000 Permission / What Happens?

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

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 View Related

Fedora :: PHP - Fopen() - Permission Denied - Even Though Chmod 755?

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

General :: How To Execute Permission To Chmod Command

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

General :: Renaming File Permission Chmod?

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

Red Hat / Fedora :: Re-apply Chmod +r Doesn't Works - Permission Denied ?

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

General :: Freecom FSG3 - SU Permission Denied When Attempting Chmod Or Chown?

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

Security :: Can't Su To Root, After Chmod -s /bin/su

Mar 7, 2011

When I try to issue "su -", I get "su: Authentication failure", and I'm 100% sure password I enter is ok.

I think it started to happen after I issued
chmod +s /usr/bin/screen
chmod 755 /usr/bin/screen
which I believe is unrelated to this problem, and,
chmod -s /bin/su (-s by mistake)
chmod 755 /bin/su
which most probably made the whole mess...

this is not the part of the problem I believe but here's some background why I did that... when trying to make possible for screen sessions to be started automatically on boot under non-root account, I entered something like "su - username -c "/usr/bin/screen -dmS screenname ./executable-file"" in bootmisc.sh, but I was getting "must run suid root for multiuser support", so I tried to fix it, and now I can't login to root account no way.

View 5 Replies View Related

Ubuntu Security :: Sudo Chmod 777 - Segmentation Fault

Mar 7, 2010

In a rage of anger against VI I decided to open my firewall config file in gedit, made some changes and was then confronted by the fact that it was read only. I decided to change the permissions for the whole of the /etc folder with:
Code:
sudo chmod 777 /etc/*

This also changed /etc/sudoers so that now whenever I try to use sudo I get the error:
sudo: /etc/sudoers is 0777, should be 0440
segmentation fault
I cannot change it back to 440 because I need sudo to do that.

View 4 Replies View Related

General :: Chmod Change Only Directories Recursively

Mar 28, 2010

Is it possible to change only directories access permissions recursively with some linux command. I need to set x (access) permissions on directories but not execute on files. [URL]

chmod - change file access permissions
-R, --recursive
change files and directories recursively

View 2 Replies View Related

General :: Change The Default Chmod Settings For Account?

Feb 28, 2011

I work in a shared computing environment and the default setting is r-x for group and others; it's upto the users to change this. I can chmod and change the permissions for all the files. However any new files created all have the default permissions. Is there anyway to change that so that I don't have to chmod everytime or run chmod as a cronjob?

View 1 Replies View Related

Software :: Unable To Use Chmod To Change The Directories Permissions?

Feb 6, 2010

i have installed linux4 on vmware and now i am to copy any file but not able to paste it in any directories and when check the permissions there is no write permission for any of the directories .Not able to use chmod to change the directories permissions.

View 4 Replies View Related

General :: Chmod Doesn't Change Permissions On Files In Subdirs

May 15, 2011

I have a Qnap 219p NAS to which I have connected a USB external harddrive. I can access the external harddrive from my windows box using the network share, but at first i couldn't access the folders. The permissions set in the NAS GUI for the external drive is correct and are identical to the permissions set to the 2 internal drives.

I ssh'ed to the nas and used 'chmod -R 770 /share/external/sds1' - this granted me access to the folders, and some files. I can open all files in the root, but if I go just 2 folders 'deeper', i can't open the files in this folder, and in the folders after that.

In ssh, if i navigate to the folder wher I cannot open the files and use 'ls -l', i can see that the permissions (770) hasn't been applied to these files. How can I get chmod to apply the 770 permission to all files, folders, subfolders and files in subfolders etc., without having to chmod every folder one by one?

View 8 Replies View Related

General :: Accidentally Did A 'chmod +x Foo' When Meant To Do A 'chmod A+r Foo'?

Jul 17, 2010

I accidentally did a 'chmod +x foo' when i meant to do a 'chmod a+r foo'.

-rw-r--r-- 1 casper trad 53 Jul 17 22:41 filegore
-rw-r--r-- 1 casper trad 13 Jul 17 22:41 filelemme
-rw-r--r-- 1 casper trad 24 Jul 17 22:41 nix

[code]....

View 1 Replies View Related

Ubuntu Security :: Can't Have Root Permission In Gnome

Oct 21, 2010

I can do easily sudo, gksu and gksudo in terminal, but when I click for update but in the software center:

screenshot1.png

and my password don't work I does this with update manager too

View 4 Replies View Related

Ubuntu Security :: How To Restrict Permission To Ssh User

Feb 26, 2011

I would like to allow a user to login through SSH but with differentpermission coming from different ipaddress.For example, a user "tester" login to SSH through 192.168.1.1 andanother user login with the same login id "tester" but from differentip 192.168.1.2.How do I restrict 192.168.1.2 to only allow for viewing the content inthe home directory while giving 192.168.1.1 full access?I got a suggestion from some oneApproach 1) Based on the ip you change the shell. If it's just for read only ajail would be fine.but how do I change shell based on IP?Approach 2) to have two ssh instances. Let's say port 22 and port 24. Port 22 isfor read only, while port 24 is for full accessso how can it be possible to give port 22 only read only access to SSH

View 1 Replies View Related

Ubuntu Security :: Sudo Permission Not Being Revoked?

Apr 1, 2011

I am using Ubuntu 10.04-alternate-amd64 for full disk encryption. After getting my updates which i get as soon as they are released. I am getting the issue temp root (sudo) password is not being revoked. After using any app that requires the use of sudo the permission for it does not get removed like it normally does.

I have tried logging out then back in, which usually removes the permission, this no longer works, also tried waiting and even after 1 hour permission still there. The only work around I have found is to use the terminal to execute the required programs then after closing terminal the temp permission is now removed like it should be. This issue has effected all of my systems and a friend of mine as well, (friend uses same distro).

To replicate issue:

1) Boot system.
2) Login.
3) Check for updates or any other app that uses root permission.
4) Logout
5) Login
6) Repeat step 3
7) App will not ask for permission it will use root permission automatically.

View 3 Replies View Related

Ubuntu :: Accidental Permission Change To 'none' On Folder?

Mar 13, 2010

A rather new user here, was messing with the preferences on a user folder of mine on Karmic, looking for a way to make the folder invisible to users (like the old windows option). Set it to 'none', then closed it, returned to the directory finding the folder with a box with an 'x' on it.

Went to open it, it says 'access denied'. So I think 'okay, how do I undo that', go back to see if I can restore it back to 'read & write' with no sucess.

Seached the forums for a solution to this issue, most of solutions revolve around 'gksudo nautilus' which I attempted to open via command-line. Nothing seemed pop open after I entered my password in responce to entering said command-line, probably because I really don't know how to use Nautilus.

View 4 Replies View Related

Ubuntu :: Change Permission Of Hard Drive?

Apr 21, 2010

I am getting annoyed that every time I try to extract, move, or delete a folder I get:

"Unable to move due to file permission"
"Unable to delete due to file permission"
"Unable to extract due to file permission"

I really have a hard time trying to use, and understand the chmod folder stuff in terminal. So I asked a friend and he helped me create a desktop program or icon where I would just drop the folder I wanted to use on it, and permission wouldn't be needed anymore.

Well, I dropped a a folder on it one day and the folder didn't open, so I tried another folder and eventually the thing never worked again so I removed it.

Is it possible to allow the entire hard drive or OS (Ubuntu 9.10) to give me permission to all the folders? I only installed the [password to log] in thing, so I wouldn't have to worry about people in my house using my computer without consent. If this isn't possible can someone post a method to create the launcher or icon?

Note: I made a root desktop thing (Guy holding what looks to be an ID card) but not even that will allow me to delete the folder in the file system. I the entire game that the folder is called is removed already, so there is no point me leaving this folder alone.

View 3 Replies View Related

Ubuntu :: Change The Folder Permission Settings?

May 3, 2010

I'm trying to move a file to opt folder. But I cant do it because I dont have the permission to do it. In folder preferences it says " you are not the owner"How can I move a file to opt folder? or How can I change the folder permission settings?

View 8 Replies View Related

Ubuntu :: Change The Permission Setting For A Folder?

Aug 25, 2010

Im trying to run Wow with Wine , But its telling me i need to give to the wow folder write access , so im right clicking on the folder , then Permissions , And it has create or delete folder already on , but right below im selecting Read and Write but it doesnt let me do it :/ just goes back to blank .

View 5 Replies View Related

Ubuntu Security :: Security - Change Home Priviledges?

Jun 15, 2010

I have read that to improve security in Ubuntu a good fix is to make the /home folder tree non-executable by default. This would mean that malware could not run in the /home tree without changing the setup.Is this a viable change, or is it just icing on the cake, any one any thoughts on this.

View 9 Replies View Related

Ubuntu Security :: Usb Memory Stick Permission Dinied?

Jun 19, 2010

I have an ubuntu 10.4 installed on my laptopI had an ubuntu 9.4 on bootable usb memory stick and I thought to install ubuntu 10 .4 on bootable usb memory stick. I format it into fat16 and after that I can not write anything on my memory stick. It says permission denied I tried sudo chmod 777 /dev/sdb1 also I tried same command on the folderwhere I mounted it. After I tried chown command in order to change ownership from root to my-username it failed too. Please someone tell me how to make my usb memory stick again writeable ?? Also startup disk creator does not fix it

View 2 Replies View Related

Ubuntu Security :: Permission Denied When Trying To Run ./setup As Root

Sep 28, 2010

I am trying to install COMSOL 4a in Ubuntu 10.04 and when I try to run ./setup and I am already connected as root the command line gives me a permission denied error.

View 6 Replies View Related

Ubuntu Security :: Wordpress Permission To Write To Files?

Nov 9, 2010

I am having difficulties assigning permission for wordpress to write files. I am having problems with the permalink within wordpress and I think it might be because of the level of permission wordpress has. Currently on my system I need to set permission to 777 in order for wordpress to write to the .htaccess file.

I am running my website on a Ubuntu machine. Version 10.10 Apache2 2.2.4

However, when I leave the permission level set to 777 I still cannot get the permalink to point to the corrent page......See my discussion on this here. [URL]

I think what I need to do is change wordpress to use a user permission or a group permission and not "everyone". I would rather have wordpress setup to login as a specific user before it can write over a file.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved