General :: Rpm - Overriding Installed File / Directory Permissions & Owners?
Jun 29, 2010
Every time I update certain packages with rpm/yum, they reset certain permissions on their files / directories which I have intentionally changed for various reasons. Is there a way I can override the permissions that the packagers have specified in the RPMs, and force it to keep the permissions/owner/group that I've set?On a Debian system, I would just use "dpkg-statoverride". I can't find any equivalent for RPM systems (CentOS 4 & 5 in my case).
View 1 Replies
ADVERTISEMENT
Feb 7, 2010
Don't ask me why, but I need to back up a website with complete structure to a windows machine (so no tar/gzip - just an identical copy). I'm experienced with rsync, so I thought to do it that way. However, in the process I'm bound to lose my ownership/permission settings for each file and that will give problems when placing back certain files. Is there a way to either:
1. save those settings on a windows machine?
2. have an easy way to save the filetree with relevant information and a shell script to attach the info back when uploading files again?
View 2 Replies
View Related
Apr 26, 2011
as the title, I have to create a file, example: /home/john/file.ini I created an user and a group, myuser:mygroup and set them to this file.ini chown myuser:mygroup file.ini Ok, my problem is I have another user named mymain this user must read this file, so how can I change the permissions? IMPORTANT: I ONLY have to allow "mymain" user to read this file, NOT all other users
View 3 Replies
View Related
Apr 14, 2010
I am using Red Hat Linux 4 .There are some few questions in my mind related to umask. I want to know that is the default file and directory permissions ?
- When we use umask (022) command in terminal. and create a new file then the permissions applied for new file is for that session and when the system will reboot linux will take automatically its default permission from etc/bashrc or /etc/profile ?
- Can we make our own umask or the professional way is to follow 022 only ?
- What is the benefit of umask in Linux?
View 2 Replies
View Related
Aug 25, 2009
I am a complete stranger to Linux and don't know a thing about this . But my cousin has installed Fedora Linux ( she says it is Linux on Unix , Red Hat Nash ) on my laptop . The laptop was having Lotus symphony earlier and it had only single partition . As a result the Linux had overridden the existing OS and all the data is lost.
My requirement is to retrieve the lost data before I format my system again.. If it is possible to recover the lost data and if yes how to do that.
View 1 Replies
View Related
May 7, 2011
I have tried chown and pcman in root mode but I can not change the owner or group of the directories and files on this drive. I think my inability to open both firefox and thunderbird are connected to this problem. Both profiles are on the rade drive. There are no .parentlock files in the profiles and yet the report is that both programs are in use, even after restarting the computer. I have had to install cromium to go online in lieu of FF:
this is my fstab. this is the line refers to the rade ntfs drive:
# /media/mydocs was on /dev/sdc1 during installation
UUID=724E07853D78E7A8 /media/mydocs ntfs defaults,umask=0022,gid=46 0 0
Quote:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
[Code]...
View 6 Replies
View Related
Jul 12, 2010
Is 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.
View 3 Replies
View Related
Jul 23, 2010
When setting up NFS what type of Linux file and directory permissions should you be familiar with?
View 1 Replies
View Related
May 13, 2014
I'm trying to compile a project, but I receive the following error:
Code: Select allIn file included from monitor/gfx/field.h:14,
from monitor/gfx/termapi.h:18,
from monitor/gfx/termapi.cpp:16:
monitor/gfx/glfont.h:8:31: error: GL/gl.h: No such file or directory
monitor/gfx/glfont.h:9:33: error: GL/glu.h: No such file or directory
monitor/gfx/termapi.cpp:20:30: error: GL/glx.h: No such file or directory
[code]...
I don't know what to do to get pass this.
View 14 Replies
View Related
Dec 6, 2010
I am new to Linux, I have just understood the very basics of the command line and the file system, but I am still having practical problems: Here is the biggest so far: I just installed IRAF (An Astronomical Image editing sofware) and even though it prompted me with "Successfully installed", when I want to run the application it gives me this error:
Code:
/iraf/iraf/bin.linux64/ecl.e: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory
Looking around in the internet I saw some users had proposed a symbolic link to libncurses.so.5.7 since it seems ncurses has replaced termcap. But even though I made this link:
Code:
$ls -l libtermcap.so.2
lrwxrwxrwx. 1 root root 17 Dec 6 11:04 libtermcap.so.2 -> libncurses.so.5.7
I still get the same error.
I made the same symbolic link, named libtermcap.so.2 in both my /usr/lib/ and /lib/ directories to the /lib/libncurses.so.5.7 since some users had mentioned /usr/lib/ and some /lib/.
I am running Fedora 14 (64bit) on my system and this version of IRAF 2.15 is made for 64bit systems.
View 3 Replies
View Related
Oct 26, 2010
This is on a customized Ubuntu 10.10 LiveCD. I have a directory which the default user "ubuntu" owns, and the permissions on the directory is 777. I'm unable to cd into the directory as ubuntu user. However as root user I'm able to access it. What could be the reason? I'm able to view the directory in nautilus.Note: I originally copied the folder over from an NTFS disk.
View 1 Replies
View Related
Oct 20, 2009
I am confused that what should be the permssions of home directory because currenlty my users when they log into their home directory , they can see all the contents of /home directory as well..However if i take read all permissions then my sites are not accessible , what should i do The current permissions are 755
View 4 Replies
View Related
Jun 30, 2011
I'm trying to create a script that when given a diretory, it goes traverses through all the subdirectories and process the files in them.However, there is one restriction.directories thatit traverses through must all have a read permission for the others group.How would I go about doing this?
View 1 Replies
View Related
Mar 20, 2010
Due to my inattention, tiredness (and probably stupidity) i've run "chown -R someuser:someuser /" and now all your base are belongs to us the files on the server belong to one user (lol).After system restart, apache, bind9, mysql, and adozen other applications don't start and fill their log files with permission errors.I haven't done any backups on system files, only on the db and website files.Please suggest some ways to revive my web server. I have only 2 month experience with linux,
View 1 Replies
View Related
May 23, 2011
I have a system where the permissions of many files are messed up. I have another system that has the same files, if I put that hard drive in, without simply overwriting the files, is there a way where I can recursively set the permissions of each file to that of this other directory?
View 1 Replies
View Related
Jan 20, 2009
I have a CMS that has a brilliant backup option with one flaw, it can only create a full backup in a directory inside the web root. In this case /var/www/site/backups. This is not practical for security as the resulting tar.gz file contains a full mysql backup as well as other items that the general public shouldn't be downloading.What permissions do I need to set so that the directory /var/www/site/backups cannot be browsed to in a browser but can be read / written by the CMS when a PHP script calls it?
View 4 Replies
View Related
Mar 31, 2010
I have created directories in root. I am looking for the chmod command to allow all users read and write permissions to a specific directory. I have done chmod 775 for a file but I need this for a directory. This includes permissions on all files and sub directories.
View 3 Replies
View Related
Mar 30, 2011
I am trying to setup 2 individual FTP users. They should both have access to the same directory. They both need to be able to read/write into the directory. But, I want them not to be able to write to each other's files (e.g. delete, remove, rename, etc.).
So let's say the shared directory is: /home/ftp/shared/
UserA needs read/write access to /home/ftp/shared/. UserA should only have write access to his own files. UserB also needs read/write access to /home/ftp/shared/. UserB should only have write access to his own files.
It would be a unix box of sorts, but that is the only restriction. I could use whatever software. I am currently thinking pure-ftpd or vsftp but I am open to all ideas.
View 1 Replies
View Related
Jul 18, 2011
I have a directory that needs to be owned by nginx user and I need to access it via other users in order to add/edit/delete files in it. So I created a group called www and added both then chgrp -R on the directory. However I am still getting a "unavailable to access no permissions" sort of error in my SSH/SCP/what ever you want to call Mac's Transmit.
ls -a output
drwxr----- 3 nginx www 4096 Jul 17 23:56 nginx
View 1 Replies
View Related
May 24, 2010
i just installed RHEL 5, when iam trying to create a directory or file it is not creating ...
View 7 Replies
View Related
Jan 25, 2011
How to set the default file permissions on ALL newly created files in linux - but differs in important ways:
I want all files created in (or copied to or moved to) a certain directory to inherit a set of default permissions that is different from the system default.
Rationale: The directory in question is the "intake hopper" for an application. Users in a group place files in the directory, and the app (running under another user id in the same group) takes them and processes them. The problem is that the owner of each file placed in the directory is the user that placed it there, and the permissions are defaulting to "rw-r--r--"; I want to change that to "rw-rw----". The app doing the intake can't do that explicitly, because the user id the app is running under doesn't own the file in question, and the default permissions don't allow the app to chmod on the file! Obviously, the user could do a chmod after putting the file there - but I want to keep the "drop" by the user as simple as possible. (These folks are not linux-literate, they just drag and drop the files from their windows desktop to a (Samba) network share - i.e. they don't even know they are interacting with a linux system.)
umask seems too powerful: I don't want to set default permissions for every file created anywhere by these users - just those created in (or placed in) this directory.
View 3 Replies
View Related
Aug 13, 2011
i am trying to write a script that does the following..1. checks if a directory exists2. changes permisssions of the directoryi have written a script but it returns a message to say that the specified directory does not exist (but it does).my question is how to i search the entire file system as directory could potenially be anywhere. would cd or su be of any use here.
View 4 Replies
View Related
Mar 21, 2010
I'm using ubuntu 9.10. I used the command:
root@aduait-laptop:~# sudo chown -R root:root /media/104B-FF96/Private to set the permissions of Private folder for root but it is giving error:
Code:
root@aduait-laptop:~# sudo chown -R root:root /media/104B-FF96/Private
chown: changing ownership of `/media/104B-FF96/Private/5.jpg': Operation not permitted
chown: changing ownership of `/media/104B-FF96/Private/6.jpg': Operation not permitted
chown: changing ownership of `/media/104B-FF96/Private/7.jpg': Operation not permitted
[Code].....
View 5 Replies
View Related
Apr 6, 2010
I have an ntfs partition that I wish to access as a normal user(non-root). For this I did the following. As root I created a folder /windows and did a chmod 777 -R on /windows. Then I added the following line to /etc/fstab
Code:
/dev/sda3 /windows ntfs-3g defaults,nosuid,nodev,umask=000 1 0
Now, the partition is mounted alright but the problem is that when any other user (non-root) creates a files in /windows (say by executing touch newfile) the newly created file has the owner and group set as root. The non-root user can create the file and he can also delete the file, however, he cannot change the permissions of the file and also the owner:group is always set as root:root. How do I get across this problem, i.e. how do I mount a partition, so that a non-root user can also change the permissions and ownerships of the files he creates.
View 2 Replies
View Related
Oct 16, 2010
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 Related
Jul 6, 2010
I have written simple modules (device driver)and i tried to compile and i found in /usr/src/ linux directory doesn't exists.
i have included </linux/modules.h> - doesn't exists in the /usr/src/ directory
i am using fedora 12 , 2.6.31.5-127.fc12.i686.PAE,i have install gcc,gcc-c++ compiler
Did i want to to download kernel source code for 2.6.31.5-127.fc12.i686.PAE. or how to add those files.
View 1 Replies
View Related
Mar 3, 2010
I'm trying to extend Python with C but when I compile this message is displayed:
[Code]...
I have already installed python2.6-dev and I have Python.h in the dyrectory /usr/include/python2.6/Python.h.
View 2 Replies
View Related
Feb 10, 2010
i have installed dhcp server on RHEL5.after instalation when i want to restart it.it shows failed message. rpm package is also installed.(dhcp-3.0.5-13.el5) dhcpd.conf file is also in /etc directory
View 1 Replies
View Related
May 5, 2010
I tried compiling a simple Hello World with gcc but didn't have any luck. I got this message: Code: junk.c:1:19: error: stdio.h: No such file or directory gcc was installed and configured correctly at one point but I think I changed the the .bash_profile since then. I checked where stdio.h lives. The path is:
[Code]....
View 2 Replies
View Related
Apr 6, 2011
I did it long time with LFS but I don't remember how. the "root" option of the kernel in grub except only the partition. How do I set the "root" as a directory in a partition?
View 4 Replies
View Related