Software :: Track Who Is Changing Permissions Of A Specific Directory?
Apr 30, 2010Anyone know a way to track who is changing permissions of a specific directory?
View 8 RepliesAnyone know a way to track who is changing permissions of a specific directory?
View 8 RepliesI have a server running RHEL6 and a virtual machine also running RHEL6. I created a directory /home/data on the server and another on the VM. When I mount the host directory on the VM, I am not able to change the ownership/permissions through the VM no matter what. The ownership is set to "nobody" and I can't even change it to root.
View 4 Replies View RelatedIs there a way to have a directory automatically change the permissions of a file that is written to it? I have a program which saves files to a directory, and gives those files read-only permissions to members in the group. This is a problem, because other users of my computer need to be able to edit these files. The directory itself has rw permissions for group members.
I guess what I am looking for is a way for the directory permissions to "override" the permissions the program is trying to save the files as. For example, if the directory has "rw" permissions for the group, then any file saved to it will automatically get the same permissions, regardless of what the program writing the file is trying to do.
I have a problem with my external hdd, I mounted it manually and in the mount table it says ive got rw permissions. But when i try to change permissions it says:
chmod: changing permissions of `whatever': read-only filesystem.
This is my mount table:
[root@localhost ExtHDD]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
[code]....
Finally I managed to install my printer/scanner drivers.The last thing I need to do is to add the following two lines to 40-libsane.rules (which is a read only file):# Brother scanners ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes".How can I change permissions for this file or add these lines without changing permissions?
View 2 Replies View RelatedI run the servers hosting an intranet, a couple of services and an external websites for my club at university. I'd like to back up all the config files to some version control system to keep track of changes, in case one of my colleagues breaks something. The idea is to keep snapshots and then just roll back the required file in case something happens.
Now to the main issue: How does a version control system handle file permissions and ownership? Does it keep them? Does it set the permissions of the user who committed the last change? These are important questions as we have multiple daemons with different users...
How do I change folder permissions without changing the permissions of the files within the folder?
View 6 Replies View RelatedIs there some blog, changelog, or place where i can track what issues get fixed in the opensuse gnome 3 implementation, or what features are bein added, what changes are bein made, etc.?For example, if there is some bug in opensuse with gnome 3, where can i read that it has been fixed in the dd/mm update, or that new feature xxxyyy was added in dd/mm update, etc.Im talking about issues, fixes, updates related to gnome 3 with opensuse. Not just opensuse with 2xgnome or kde.
View 1 Replies View RelatedHow to change the password of Directory Manager in RED HAT Directory Services through a ldapclient through command line or graphical.
View 1 Replies View RelatedI would like to keep track of not only what bash commands I used and when, but also where they were issued from, i.e. what was the current working directory when I issued "foobar" on a particular day and time. Can we ask bash history to keep track of working directories too? I have tried to get an idea of this reading the enormous "man bash", but I don't seem to have an answer yet either way.
View 11 Replies View RelatedThe problem is whenever we reboot the system the permissions of / dev/lp0 (line printer) is changing. So every time we are changing the / dev/lp0 permissions through root using chmod 777 /dev/lp0
Is there any smooth solution for this? Why the /dev/lp0 permissions are changed with every reboot?
i wonder, why nobody has written about it ...
How can i grant permission for files to specific user or specific group ??
Updated:
We have 3 groups: "g12" ("u1" and "u2), "g34" and "g56".
"g12" should only read the file.
"g34" should write and read it.
"g56" should have all permissions (rwx).
And others should not access the file at all.
im looking to allow virtualbox raw disk access to /dev/sdb
currently if i
ls -l /dev/sdb
brw-rw---- 1 root disk 8,2010-01-04 17:00 /dev/sdb
now if i chmod this to 777 or use chown to change the owner this temporarily works but after a few moments it defaults back to its original permissions.
is there a way i can define the permission? i was thinking fstab but i can't have a mount point?
I am trying to automate ftp to transfer files from windows to Linux server automatically and my script looks like this .
@echo off
SET CUSTOM=/apps12i/oracle/KIRAN/apps/apps_st/appl/custom/12.0.0/reports/US
echo user oracle> ftpcmd.dat
[code]....
Any files we transfer through ftp from windows , their default permissions to be set 755 automatically . We are using Red Hat Enterprise Linux AS release 4 (Nahant Update 7) .
I often run "gulp", a networking utility, to capture data from an instrument on "eth1". By default gulp must be run as root to have access to the ethernet port, and when I'm the only one running it, that's fine. But I need to let several other users to capture data and don't want to give them all sudo permissions for both gulp, and more importantly, 'chmod'. Is there anyway to change the permissions of eth1 to allow all users to open it and avoid sudo entirely? This is on a Red Hat/Fedora machine.
View 1 Replies View RelatedI've compiled my own code as root (long story why) anyway I now need to switch this to a normal user to compile. So I did a simple copy/paste (using gnome/debian lenny) to my home/user. I then logged in as used to see the folders with a padlock and permissions for root only. So I logged back in as root, change permissions to the used, check they were all ok, logged back in as user, and it still says owner root, even thought when I log in as root it shows user as owner.
View 6 Replies View RelatedHow can I mount a device with specific user rights on start up? I still have some problems figuring it out. I would like to mount the divide with uid=1000 and gid=1000. My current entry to the /etc/fstab/ file looks like this:
dev /var/www vboxsf rw, suid, dev, exec, auto, nouser, async, uid=1000
At 2:20AM /dev/null's permissions are changing to a restrictive setting that allows root access but not normal user access.
I am not seeing anything obvious in cron or /etc/permissions* or /etc/udev. And
# udevadm info --path=/dev/null
device path not found
I use a USB drive to store most of my personal and work files, and I use it both at home and at work (two different machines, both running Ubuntu). The drive is encrypted, and is accessed using TrueCrypt (the entire drive is encrypted as a device rather than an encrypted file on the device). The TrueCrypt device is formatted as ext3/ext4.
I have a problem with certain file permissions being changed to read-only (rw-r--r--) after mounting the drive. This happens after I have used it on one computer, and then I mount it on the other. Even though I have been setting write permissions to all (chmod -R a+rw *) to get around this problem, when I mount on the other machine the write access is gone. I don't want to keep manually changing permissions; I would like the file permissions to stay as I set them.I'm using the same version of TrueCrypt at work and at home. I'm running Ubuntu 9.04 at work, and 9.10 at home.I do have different usernames on these computers, and I suspect that is the problem (but don't see why this would change file permissions for all users).
I installed Ubuntu from the alternate cd a few days ago to save space and resources on a very old laptop. (install command line, then add what I wanted) But I have struck an interesting problem with file permissions. Various programs like synaptic, leafpad, pcman, Banshee, all require I enter the root password to execute them (or sudo command from terminal). I want to change synaptic from root ownership to sudo and leafpad etc to execute without using the sudo command in terminal. I could get comments on the commands before I execute them in terminal and if I am introducing a security problem, as I am still learning bash. $ sudo chown sudo:sudo synaptic
I would still be asked for my sudo password before being able to open synaptic? As in standard Ubuntu instead of root password.$ sudo chmod 777 leafpad pcman Banshee All users could open these programs from the menu? I have my admin account and a general account which I use for everyday things like surfing the net and listening to music.
I have two computers (one at work, one laptop) that I use daily. Both are running Ubuntu 10.04. I frequently use a usb stick to transfer files from one to the other. Somehow, every time I do this, all files get turned into executables (as if I did a chmod a+x on them...)
This happens every time I use the usb stick. I've reformatted the stick, but still this problem persists... anyone have any ideas on what is going on? It is really getting annoying to have to zip up folders so this doesn't happen...
I have four internal harddrives on my system. On the first HD i've installed Debian 5.0 AMD. I'm trying to write to my other HD to backup my files,but i get a message that this HD doesn't have permision to be writen to. How do i change the permission for Harddrives.
View 3 Replies View RelatedI first installed linux as ubuntu version 9.04 straight off of a Computer Active CD and liked it so started to delve into file permissions and authorisations, simple stuff I suppose just so I could feel my way around things for a while. Using the built in Ubuntu software centre I downloaded and installed a prog which handles authorisations and I found that very helpful but then through the update manager I installed the latest distribution update (9.10) and now find that the authorisation software only lists a couple of things that I can get to and consequently every time I mount one of my hard disks I'm asked for my admin password even though I am logged in as administrator which is a hassle,
a small one but there all the same, as a newbie I realise it must be me not understanding something but I just dont know what, also in the previous version right clicking on the logging out panel gave you an option to remove the 60 second shutdown or restart delay and that has disappeared in the new version, again its really only just a nuisance thing but I find that sorting out this sort of thing will help me to understand the system
I'm running rhel6 64bit. Accidentally I ran % chmod -R 777 /etc and after that I have a problem to do 'su' or 'sudo'. When I did sudo it complained that /etc/sudoers has 777 while it should be 0440. I changed that and also restored right permission for:
-rw-r--r-- 1 root root 1966 May 19 13:41 /etc/passwd
-r-------- 1 root root 1161 May 19 13:42 /etc/shadow
-r--r----- 1 root root 3746 Apr 23 01:38 /etc/sudoers
Anyway it failed to 'su'. Then I restored back permissions on files in /etc/security and /etc/sysconfig. Still can't do 'su'. Note: I could login from console as root but can't 'su' or 'sudo'. when I do 'su' it gives error: Password: su: incorrect password
just trying to learn linux here and have some comfusing moments.it is my understanding that if you own directories and files you maychange the group, ownership, and permissions on all of these as you desire.however, in my case I cannot make any changes in my setup on group, ownershipor permissions on any of my files or directories.get error message <operation not permitted>. I know as root you ar supposed tobe able to do anything you desire, however in my case I can go in as root andtry the same commands with the same results. it is as if I am locked out ofsystem as far as any changes are concerned.on my jump drive I have:
total 83832
drwxr-xr-x 26 jevans root 16384 1969-12-31 19:00 .
drwxrwxr-x 9 jevans jevans 4096 2010-01-15 12:51 ..
[code]...
I recently got a new external drive and backed all my files up on the new external: movies, music, docs, etc. Now all my files have permission rights to the root only. I was able to change this by open up nautilis from a terminal in root and change the permission on the whole drive to my current user so I can access the files, copy & delete the files. I wanted to change some music file information in Kynamo this morning and was not able to since all the individual files still belong to the root. How can I change this permission issue without having to change each individual file?
View 8 Replies View RelatedI tried to place a mono icon in usr/icons/etc but I didn't have the permission to do so. I tried to change my user profile to Admin, thinking I could go back to custom, but that hasn't and it isn't allowing me to go back to my previous setting.
Within minutes of being an Admin user I noticed I couldn't even unmount something. I really need to figure out how to change my profile back to default.
After that has been dealt with, I would like some guidance on how to gain root access to put my icon where it needs to be.
We have a development server not accessible to the public used for testing which was setup for us. When attempting to have my PHP scripts upload an image to a folder, I have to CHMOD the folder to 777. Ideally, when a folder is created it has permissions set to 755 - I want to be able to upload to them. Is there a way to change permissions to allow the PHP scripts that run to be able to write to a folder? I know it has something to do with owner or group, but I don't know where to start.
View 2 Replies View Relatedi have this problem and i may need professional help; it appears smb4k made my /etc/sudoers file writable (according to log), hence, any sudo command will coerce this error:
Code: ubuntu@ubuntu~$ sudo any sudo: /etc/sudoers is mode 0640, should be 0440 sudo: no valid sudoers sources found, quitting i wanted to boot into recovery console and chmod 0440 /etc/sudoers, but it's a live system - it doesn't have a recovery mode. [URL].. How would i mount the live system from another liveCD?
I installed Sun's virtual box 3.1 under Ubuntu 9.04. It worked flawlessly. I upgraded to to 9.10 and know I get a kernel error. rc=-1908 Now I cannot get Windows to load.
View 2 Replies View Related