Little bit of background: I have a execuatable which requires admin-privileges to run. This executable also has a runtime dependency on a custom dynamic lib. That dynamic lib has to be loaded from a custom path (and not from /usr/lib because a similar old version of this executable is present on which other libs may be referring to) which the
Tag: chmod
Change file permission for multiple file paths in a file
I have a file which stores multiple file paths in the file content, as such: Is there a single line command to loop the file paths in the file and set the permission for each of the file paths chmod 644 <file paths in /var/tmp/sample>? Answer Another way to use xargs:
How to give permission to root user generated file by other user in linux?
I am trying to giving permission to root user generated file but not able to do this. Can anyone help me how to do this? I tried: Example: Expected result: Answer First of all, I can’t see what you’re doing by “echo -e ‘password'”. The ‘>’ character means “output redirection”, that is, bash will redirect the input of the “echo
How to change the permission mode in Linux?
To grant read and write permissions to the owner and to remove execution permission from the group should it be two commands as, or could it be can done in a single command? Answer
What is efficient way to ensure bash script variable is valid permission bits?
I’m inexperienced with bash scripts, mostly cobbling things together from google searches. The following simple script creates file foo and changes its permission bits to whatever the script’s $1 is. Can an experienced bash scripter please advise what would be a proper and/or efficient way to ensure that $1 is valid permission bits, i.e. a valid arg1 to chmod? As
linux files and folders are not inheriting parent directory permissions
I created a directory /share and gave chmod 2770 permission and chown root:stock /share. 1) When I create touch a file inside /share, I see the file has rw-rw-r– and I don’t see rwxrws— 2) When I create a directory in /share/data I see the permission as drwxrwsr-x where are the parent directory is drwxrws— How can I get parent
How to delete target folder created using scp by target user
I have a machines A B C. only Machine B have access to A & C. For machine A I have root access , machine B I have root access and for machine C I have User level access. 1.2.3.4 is the ip address assigned to machine B. When I am doing from machine A as scp -pr ./logs/ root@1.2.3.4:/common/tftpboot/
Running Perl script accidentally locked a folder
I have a Perl script which has the following code Upon running this script, I am unable to access the current folder (and open this script of course) anymore. When seeing the folder in Konqueror, there is an additional lock in the folder icon. Can anyone tell me what happened and how can I undo this? I have checked the
Unable to run .py file from putty, Syntax error: word unexpected (expecting “)”)
I am new to both Python and Linux and as such request simple explanations with minimal assumed knowledge where possible please, however I am more than willing to invest time and effort to learn. I have a Raspberry Pi 2 (Model B V1.1) that is running Linux. I interact with this pi via putty. I am trying to create a
Where is the official documentation for chmod?
I would have expected it to be here in the gnu documentation but it is not. So I Googled it and their were many links but I don’t know which one is the most “official”. For example the first hit is for an Ubuntu distribution, and the second is for a Mac OS X distribution. Answer On a typical Linux