Server :: Cannot Remove File - "Operation Not Permitted"
Oct 4, 2010
I've been trying to remove a folder, but a file residing within this folder is not allowing me to. I've, also, tried removing the file manually to no avail:
[root@ps-dev-app1 mnt]# rm -rf img-mnt
rm: cannot remove `img-mnt/.journal': Operation not permitted
[root@ps-dev-app1 mnt]# cd img-mnt/
[code]....
I've tried changing the permissions/ownership on the file, but same result:
[root@ps-dev-app1 img-mnt]# chmod 777 .journal
chmod: changing permissions of `.journal': Operation not permitted
[root@ps-dev-app1 img-mnt]# chown root:root .journal
chown: changing ownership of `.journal': Operation not permitted
Also, this is not a mounted drive, even though it shows up under the /mnt directory. I've checked and nothing is mounted there.
I`ve been given a project to design a program that will interface with a hardware device through the parallel port.And so far it`s not going go. I managed to write the programe an compiled it, but when runing it the compiler says: 'changing ownership of'and then the file name then it continues to say, 'operation not permitted'.
I'm having a problem where I'm unable to delete a file, even as root. Any attempts to remove or otherwise modify the file result in 'Operation not permitted'.
# rm d91c6a6e_2a2d7_out.xml rm: remove regular file `d91c6a6e_2a2d7_out.xml'? y rm: cannot remove `d91c6a6e_2a2d7_out.xml': Operation not permitted
Below is the oneliner that I am using to exclude all of "." hidden directories within the same directory.
Code: cd find . -depth ( -wholename ./.* ) -prune -o -print | cpio -oav > /media/caca/extract/full$date.cpio it works fine but when I extract the files from the full$date.cpio archive it appears to have worked but gives me permission errors:
Code: cd /media/caca/extract cpio -ivd < full061411.cpio cpio: Selection_001.png: Cannot change mode to rw-r--r--: Operation not permitted Selection_001.png cpio: Selection_002.png: Cannot change mode to rw-r--r--: Operation not permitted Selection_002.png
Fedora 12 gcc 4.4.1 I am doing some programming, and my program gave me a stack dump. However, there is no core file for me to examine.
So I did: Code: ulimit -c unlimited and got this error message:
Code: bash: ulimit: core file size: cannot modify limit: Operation not permitted I also tried setting ulimit to 50000 and still got the same error. The results of ulimit -a:
Code: $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited
I am having a problem when I try to login as su.I type the command SU and then the password as normal and I get su: cannot set groups: Operation not permitted I am not sure what could of caused this error and how to fix it.
I am trying to modify the user and group for a directory on my SD card, but I get an "Operation not permitted" error even when I'm signed in as root. I have the SD card auto mounted using:
I just setup a server using ubuntu server edition also installed apache, php, mysql and phpmyadmin.. when i try to setup FTP permission via winscp i get the error /var/www/phpinfo.php: Operation not permitted. ans so on for other files present there..
I'm trying to setup ACL (access control lists) on my /var/www folder so myself and my roommate can work on a site together. I've installed ACL and added the acl option to fstab for the root (/), but whenever I try to setfacl, I still get
Quote:
setfacl: /var/www: Operation not permitted
I can however share folders in my /home directory so I guess it has to be that /var isn't getting the ACL option. Here is my fstab file:
I couldn't install everything during setup of my debian server, so I installed post setup through the Add/Remove Programs. My guess is there is so much installed that either DHCP is not setup properly or there is a firewall installed. My computer found an IP address from my router but cannot connect to the DNS service or ping my router. I type: ping 192.168.1.1 computer resp: "ping: sendmsg: Operation not permitted"
I'm setting up a network backup on a workstation here using Webmin. I'm backing up to a local FTP server. I set everything correctly (FTP credentials, directories, etc) but I get an error saying "Could not create file" and another saying "Cannot write: Operation not permitted"
After upgrading to Debian 8, I'm having a bit of trouble with systemd, since I'm not used to it (seeing as it was all init when I started). I tried to use a tutorial to create a new service and one step in it was to run
Code: Select allsystemctl enable xxx.service
Unfortunately, every time I run systemctl - even without parameters - I get this error:
Code: Select allFailed to get D-Bus connection: Operation not permitted
i have written one backup script in linux workstation.The backup script will do zipping files and moved to the backup directory(i,e /net/ts-bcn/sb_backup/sand). while moving zipped files to the backup directory i am getting some error like this #error:mv:failed to preserve ownership /net/ts-bcn/sb_backup/sand operation not permitted. i am getting the file owner and group owner as nfsnobody for the zipped files.
I am running Ubuntu 9.10 Karmic Koala, and I am having problems with GDB. When I attempt to debug a C program in kdbg or codeblocks, the output terminal will display this message: "warning: GDB: Failed to set controlling terminal: Operation not permitted" I have searched quite a bit and I have not found a fix that works.
I am running the latest stable versions of all my software supplied by the ubuntu repositories My system meets all the dependencies for KDBG and Codeblocks
I am running gnome, but the KDE files installed by Synaptic are version 3.5.10 I have KDBG version 2.1.1 I have GDB version 7.0-0ubuntu1 I have CodeBlocks 8.02-0ubuntu4
If anybody needs any more information in order to give ideas or knowledge on how to fix this just let me know
I run a small site and today I've discovered that my site is down. I found that cPanel has flagged the account suspended even though I haven't got any quotas on the account. I don't know what went wrong. I've tried to unsuspend the account in WHM but a certain part of the function failed.
Quote:
safe_userchgid: chown: /home/crocbits/public_html: Operation not permitted at /scripts/cPScript/SafetyBits.pm line 93.
After searching the internet someone mentioned that the problem might lie in the permissions of the public_html folder. I had a look at the permissions and the folder had no permissions d----- When I try to chmod the folder I get this error:
Quote:
chmod: changing permissions of `public_html': Operation not permitted
I have no idea what to do next. All the files in the directory are locked too. I tried to move them but this command isn't allowed either. I ran these commands under the 'root' user in SSH.
I am running Oracle Enterprise Linux x64 5.5 on an HP Proliant DL380 G6 attached to various SAN's via fibre channel. I have setup multipath, edited multipath.conf, lvm.conf, and after some trial and error, everything behaves and looks as it should in regard to multipath. However, when I try to resize a multipath ext3 lvm filesystem, The operation runs for a while, but then dies and I get the above error. I then see this error in /var/log/messages:
-I am only using the /dev/mapper/ paths to the filesystem (ie, resize2fs /dev/mapper/testvol-lvol1 128G) -if I unmount the filesystem, resize2fs works fine -Have tried removing and re-adding journal file via tune2fs with no luck -The VG has plenty of room in it and is composed of a 100GB and 200GB partition. -Inode resize is on in the filesystem
I am wondering if online resize2fs is only for small filesystems or not recommended as a best practice or just not generally done??? As I mentioned, the operation works fine offline if I unmount the filesystem, but this won't be an option once system is in production.
LDAP authentication problem on debian squeeze? To my knowledge, I have everything setup properly to do ldap authentication + local authentication on a host. I can login as a local user. I can login as an LDAP user.
When I log in as an LDAP user, my primary group is set properly. It is an LDAP group. I can change the group ownership of files to LDAP groups using chgrp. So far so good. This all works as expected. The commands getent passwd and getent group work wondefully, and generate the expected results. I can newgrp to any *local* group, but if I try to newgrp to an ldap group, I get the following error:
setgid: Operation not permitted. I've tried googling and asked on #debian on irc.debian.org. No luck.
I updated my lucid alpha testing (64 bit)install after which I am unable to boot into any of my Ubuntu installs(sda11 has a dedicated Burg partition and sda10 has the stable karmic (32 bit)install and sda9 has the testing lucid install) Now I am trying to recover (rewrite Burg or at least grub2 on the MBR) my installs
This is what happens custom@custom:~$ sudo mount /dev/sda10 /mnt custom@custom:~$ sudo mount -o bind /dev /mnt/dev custom@custom:~$ chroot/mnt
[code]....
i tried a slightly different code with little success
custom@custom:~$ sudo mount /dev/sda10 /mnt mount: /dev/sda10 already mounted or /mnt busy mount: according to mtab, /dev/sda10 is already mounted on /mnt
[code]....
I also ran a whereis for bash and it also is there
I have a WD MyBook World NAS share mounted with the following options (I tried also other options):Code:cifs nouser,atime,auto,rw,nodev,noexec,nosuid,nodfs,nounix,guest,uid=0,gid=0,file_mode=0777,dir_mode=0777The cp -a, touch, etc. commands can change the file time if the root is executing the command (means NAS supports time setting), but as an user I can't change the file time - with an exception of changing the time to the current time. For an illustration see below:
I use a wired Dlink Adsl Router GLB502T with its inbuilt dialer configured. Problem is it will not connect while computer is running.When I try to ping the local ip of the modem this is what I get "ping: sendmsg: Operation not permitted" and "/etc/init.d/networking restart" has no effect either.I need to restart my computer every time i want to connect to the Internet.I switch on the modem when the grub bootloader appears and the modem connects without any problem.This problem appeared when i installed Ubuntu 9.04.There was no problem with Ubuntu 8.04.
OS:Ubuntu 9.04 Motherboard: Asus M2N68-AM NVIDIA Geforce 7025/nForce 630a RTL8211CL Phy Gigabit LAN
I am trying to create a jailed shell for a user Don($UID '500') using my own method(I don't want to use any ready-made "jailkit"). The user don should get a home directory /jail/don instead of /home/don when he login via SSH (So that he will not able to see any other files/directories on the system)
This is what I have done.
Quote:
Code:
It works without any issue ....Home directory changes to /jail/don when I ssh to the system as user don. ie: #ssh don@192.168.0.66
Then I added a chroot command to this code.
Code:
Unfortunately , now I am getting an error message saying that "chroot: cannot change root directory to /jail: Operation not permitted" .. I am not sure how to rectify this error... Is my approach correct to get a jailed shell using /etc/profile file ?
I've been trying to mount ftp on a directory, using curlftpfs, but when I run:
Code:
curlftpfs user:pass@server /mnt/mount-point
I get the error:
Code:
fuse: device not found, try 'modprobe fuse' first
And when I run it, I get:
Code:
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/. FATAL: Could not load /lib/modules/2.6.32-dyomin.1/modules.dep: No such file or directory
Code:
mknod /dev/fuse c 10 229
After that when I run the mount command ) get the error:
Code:
fuse: failed to open /dev/fuse: Operation not permitted
I am developing a java application that deals with the parallel port I used the parport library, I have the following problem: I am using netbeans 6.9 and linux redhat, when I run the code (java code that controls parallel port) from netbeans I get: "ioperm error: Operation not permitted" I used the "clean and build" function in Netbeans to create the jar file (test.jar) then I changed the permission of the test.jar to root using this command "chmod 4777 test.jar" and the test.jar file worked just fine as a stand alone file, but I still get the same error message when I try to run the program from Netbeans
May 1 03:15:01 master cp: error processing extended attributes: Operation not permitted May 1 03:15:02 master cp: error processing extended attributes: Operation not permitted May 1 03:15:02 master 700.daily.server.cyrus: Error: /etc/MailServicesOther.plist postfix does not contain a dictionary with key log_rolling_days.
I am trying to install a third party driver and the provided makefile makes a call to insmod. Whenever I try to install this I run "su", so I am root and should have permissions. However, when I run "make install" I get the following output:
Code: # make install Unloading any instances of foo module Loading new foo into running kernel insmod: error inserting 'foo.ko': -1 Operation not permitted make: *** [install] Error 1
Like I said before, I'm doing this as root, so I don't see how this is possible. Additionally, every time I try to do this it seems to cause a lot of damage to whatever kernel I'm currently booted in; USB and ethernet (and hence the Internet) stop working and I have to wipe the kernel and reinstall it.
have a simple program attached below. I login as root, compiled and ran setgid_test.c as root also. The program simply tries to copy a file "seed_file" to a new "test_file". The new "test_file" should have user id: 40088, group id "40000". When I ran a.out, setuid() worked, but setgid() failed. I have to have this work, because I always login to a root, but will create files with different uids and gids to test a quota system.Please note that both uid and gid I used are valid. I have NIS client setup properly.[root@rtplab101 sunp]# ypcat passwd|grep 40088 |grep 40000dvt_usr40088:aK5r4VXKZIBUo:40088:40000:quota_testing:/:/bin/cshMy Linux client is running RedHat 5, Linux 2.6.18-92.el5PAE
I have installed lamp server on a computer i have for website development. i use the latest ubuntu server 9.10, apache, php, mySql, Webmin - all the latest versions. it has been running very smoothly for a while now, accessing both from internal network as well as from outside.my problem is very strange - whenever i connect using ftp client to my server from outside, to do a "massive" file operation like uploading a big number of files or deleting an entire directory, my computer/server "crashes" and i lose connection to it for a few minutes. i cannot access it via ftp, not ssh, and neither of the website installed on it run (http). i just have to wait about 10 minutes for the server to come back again.Like i said - it only happen when accessed from the outside (internet). if i do the same operation from a local computer (the same network) no problem there.