Questions tagged [permissions]

Permissions are the Unix way of controlling access to resources such as files, directories and devices and may be specified for an owner, group, or all users.

Filter by
Sorted by
Tagged with
0
votes
1answer
120 views

How to give permissions for all users to execute a program installed by sudoers?

I installed a Perl program with many external dependencies in /opt/Soft (ubuntu 18 ) using sudo su at first step. Once installed, I exit the "sudo su" mode I could not anymore execute the program as a ...
0
votes
2answers
586 views

Website cannot write to files or create directories

I've been trying to install TeemIP for about 6+ months now and I've never been able to figure out this issue on Centos7. The error I get is the following: The directory '/var/www/teemip/public_html/...
0
votes
2answers
107 views

Setting up special permission for a directory

I have a directory (i.e data) on a Linux machine, and it is owned by an user (i.e userone) and a group (i.e groupone) and holds a permission of 775 with setgid. Now whenever the userone creates a new ...
0
votes
1answer
1k views

File and Folder permissions

I have copied some data from a client's home folder to a group work folder accessed by a group in Linux. Other clients can see most of the data except some in a specific folder. When the new client ...
0
votes
2answers
71 views

How to configure permissions in this case?

I have a SOHO Synology NAS that runs a Linux based system. Due to some system limitations I need to have a shared folder called backup to hold all backup data from my SOHO computers (that means Linux, ...
0
votes
2answers
593 views

Linux Debian Jessie sudo command keeps asking for password

I have recently configured a Symfony 3 site which involved me to set up some permissions on the /var folder. I had to do the following: $ HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]...
0
votes
1answer
6k views

file with permission lrwxrwxrwx does not show any link on “ls -l” command

lrwxrwxrwx. 1 tomcat tomcat 27 Oct 17 00:23 work This is my file(link) I want to go inside a directory within it to rm a file and then copy the new one. But it says permission denied and does not ...
0
votes
1answer
3k views

Grant FTP access to specific directory

I have setup CentOS on a box on my local network and installed httpd, PHP, Webmin (and UserMin) etc. I opted for ProFTPd and have opened up ports for FTP, Webmin and Apache. I can now access Webmin ...
0
votes
2answers
849 views

sudo: script launched from another script won't redirect standard output

I'm using AIX 5.3 with sudo 1.6.9p23. Sudoers file grants user fcomartin permission to run any command as user oas: fcomarti ALL=(oas) ALL User oas has a bash script called menu, which launches ...
0
votes
1answer
51 views

Fixing permissions on external drive

I have created and mount my drive using root. And now I dont have permissions to write anything on it. [ahmed@arkan Desktop]$ ls -al total 12 drwxr-xr-x. 5 ahmed ahmed 74 Apr 21 17:38 . drwx------....
0
votes
3answers
486 views

Default text file permissions?

How do I find out the default permissions for a newly created text file? I've tried ls -l filename.txt but it keeps saying to me that it cannot access the txt file, so I'm pretty sure that I'm doing ...
0
votes
2answers
1k views

suphp directory not owned by user

I have an odd problem with suphp. I have logged in as tom and added some php to a directory in my web server. Now I'm getting this error: Directory /home/.../web/public_html is not owned by tom I ...
0
votes
2answers
1k views

root “su - <user>” got permission denied (Ignored)

Got permission denied when switching user from root to postgres. No issue switching from root to ubuntu. root@node-01:~# su - postgres su: Permission denied (Ignored) postgres@node-01:~$ logout root@...
-1
votes
2answers
81 views

How does running this bash script as sudo execute contents as root

I am being told the following two statements about running scripts as sudo: The user executing the sudo command must also have execute permission to the file Only the file will execute as root and ...
-1
votes
1answer
14k views

Getting “Permission denied” even though I have set global read permissions on a file

I'm using Amazon Linux. I have set global read permissions on a file, but I can't seem to access it as a normal user: [myuser@mymachine ~]$ ls -al /usr/java/jboss/standalone/deployments/myproject.war/...
-1
votes
2answers
141 views

How can a regular user circumvent a restriction on running ls imposed by root?

Suppose a root user denied all permissions to use the 'ls' command for a specific regular user in a system. How can that regular user overcome this denial and how can he use 'ls' command with out any ...
-1
votes
1answer
2k views

getting pppd “must be root” after setting whole fs with chmod 777

I have a process called network_manager which at some point runs a command /usr/sbin/pppd. everything works fine. But then, some files becomes unreadable on the file system and I use sudo chmod -R ...
-1
votes
2answers
103 views

What am I doing wrong with my linux commands? [duplicate]

I want to inherit every new file from my group so that I can have execute permissions, and no one else, but when I try to create new ones, it gives me 664 permissions how can I fix this?? sudo ...
-1
votes
1answer
1k views

How to control setuid, setgid, and sticky bits from chmod's numeric method? [duplicate]

I know how to set read/write/execute with three numbers from the Arch wiki's file permissions page. I also know that chmod 7777 will set the setuid, setgid, and sticky bits to true. But which number ...
-1
votes
2answers
236 views

How to make an existing directory (and sub-directories) to be suddenly writable by ROOT ONLY?

Let's say i have a directory, at: /tmp/uploads/ And inside got several recursive directories and files created by DIFFERENT USERS before. So now, suddenly how do i make that above directory to be ...
-1
votes
1answer
73 views

enable to write to file inspite we remove all file permissions

something isn’t clearly for me when I remove all permissions from file as chmod 000 I expected to get permissions denied when I write to file but still I can write to file as the following example can ...
-1
votes
2answers
93 views

Explanations on ACL Permissions [closed]

The manual page man 5 acl is not very helpful in this case ... im network I found something but they do not explain in an "understandable" way to people (like me) who are completely fasting on this ...
-1
votes
1answer
417 views

How to change file permission without chmod?

Our college assigned us a homework for Unix. We have to change the permission of a newly created file to 222 without using chmod. Decrease the file permission by "222" [Do not use chmod command]: ...
-1
votes
1answer
182 views

What tasks still require the suid bit on modern systems? [closed]

The setuid concept appears to become gradually obsolete, being replaced by proper permissions and authentication models in the few cases it is still in use. Examples: ping has been converted to use ...
-1
votes
1answer
29 views

A command showing if I have the right to perform writing?

I'm searching for a command which only says if the current user has r-rights (read) on the file passed as a parameter. This command could be something like haveIRights -x <file> and it has to ...
-1
votes
1answer
192 views

What can I do if I got locked out by cphulk?

Is there any way in Linux to create another user with root rights? I got locked out by cphulk and I need some other way to log in. Notice many ways to fix this involve logging in to root or whm. ...
-1
votes
2answers
52 views

How to provide full access to specified directory?

How to provide full access only to specified directory (/home/new_user/) which contains php-executable files which user can execute? The user can't change directory : ls -la /home results in the ...
-1
votes
1answer
52 views

How may I change permissions on files that starts with digits?

I want to change permission on files that starts with the digits 1 through to 9 (e.g. 1.txt, 2.txt etc.) My code looks like this: #!/bin/bash for(( i = 1 ; i < 10; i++)) do for file in /...
-1
votes
1answer
34 views

How to change permissions of all the files in my directory?

I used a script to install Hadoop /opt/hadoop-3.2.0$ ll total 216 drwxr-xr-x 10 yarn hadoop 4096 јул 9 08:05 ./ drwxr-xr-x 9 root root 4096 јул 9 07:42 ../ drwxr-xr-x 2 yarn hadoop 4096 ...
-1
votes
2answers
131 views

How to test file permissions using shell script?

I am testing if my file has read permissions, by running this script as root: #!/usr/bin/env bash FILE="/etc/shadow" if ! [ -r $FILE ]; then echo "Hello" fi exit 0 Ideally, script has to print ...
-1
votes
1answer
378 views

I am having problems running updates and downloading software in terminal

Everytime I try and update my software this is what is says... mint@mint ~ $ apt-get update Reading package lists... Done W: chmod 0700 of directory /var/lib/apt/lists/partial failed - ...
-1
votes
1answer
47 views

why doesn't setfacl give executable permission?

I ran sudo setfacl -d -m g::rwx /tmp then went into /tmp and created a file and looked at its permissions: -rw-rw-rw-. 1 jm wheel 0 Aug 24 10:26 test_file then I ran sudo chmod g+rwx ...
-1
votes
1answer
49 views

new files have different permissions [closed]

I have a folder I'm sharing with another user in a linux centos 7 box. even though I've set the permissions for the full folder to 777 it still locks new files created by the other user. the folder ...
-1
votes
1answer
402 views

Why does cd need execution permission of a directory? [duplicate]

From https://unix.stackexchange.com/a/350629/674 For directories, the execute permission is a little different; it means you can do things to files within that directory (e. g. read or execute them)...
-1
votes
1answer
712 views

Why are user permissions modifications not taken into account in a tmux session? [duplicate]

I am SSH'ing into a debian server, and to avoid having multiple connections at the same time, I use tmux. I changed the permissions of a directory (here, /opt/syncserver), and set the owner to the ...
-1
votes
1answer
553 views

how to list all files with matching permissions of another file

I want to write a script that displays all files in a directory with the same permission as file a.txt. Basically if I have myFile.txt, with permission 777 and I say hey, how many other files do I ...
-1
votes
2answers
143 views

change permissions

I am practising and I am trying to: 1) create files with name of all combinations or r,w,x permission = 512 files; 2) change the permission of that file to match the name I have created this ...
-1
votes
2answers
702 views

Clarification on permissions with GID & UID in UNIX

If Test1 & Test2 are users, then Test1 : UID : 501, GID :501, groups=501,100 Test2 : UID : 502, GID :502, groups=502,100 What will be the correct option from below and explain how? Test1 can't ...
-1
votes
2answers
51 views

What's the point of setting individual file permissions when no-one can access/view your user's home directory anyway?

So let's assume I have a file inside my ~ directory called "file.txt". My ~ directory (aka user) has it's permissions set to 700. Now, let's say my file has permissions set to 664, meaning I want ...
-1
votes
1answer
351 views

chmod: changing permissions of Operation not permitted

I have an error everytime i do something to 3 folder i have an error chmod: changing permissions of ‘’: Operation not permitted This error only happen to 3 folder it happen after after i press ...
-1
votes
1answer
103 views

SCP issue || Permisson Denied

I have two different machines and I tried to copy a file via SCP. I executed below command: scp trial.txt root@10.181.101.21:/unixStudy/trial.txt and then I got "Permission denied" error even though ...
-1
votes
1answer
55 views

How to write to file with redirection/pipes if it's read-only

So this seems to work: chmod 777 config.json node declarations.js > config.json chmod 444 config.json but that seems like extra steps. is there some way to write to a file with redirection and ...
-1
votes
1answer
250 views

Unix File Permissions and Decryption with OpenSSL's enc command

I have a specific question about OpenSSL's enc command, but I suppose it applies more generally to Unix/Linux file permissions. I have a bash script which has the following decrypt command: openssl ...
-1
votes
1answer
91 views

How to organize /home/ such that users don't see each other's content?

Up to know, I used a sandbox server for myself only, and websites were in subdirectories of /home/www/: drwxr-xr-x 5 root root 4096 Nov 30 14:45 www |--- drwxr-xr-x 3 www-data www-data 4096 Oct 14 ...
-1
votes
2answers
261 views

How to escape wildcard in path when using sudo -u <username> command [duplicate]

I need to access a file on an NFS fileserver where root squash is turned on. I'm using bash on Arch Linux. I am using this type of command: # sudo -u authduser ls /mounted/filesystem/path/aa.user.js ...
-1
votes
1answer
2k views

Missing /var/www directory

I created an CentOS 7 EC2 instance on AWS and installed nginx as my web server. However unlike Apache, it has not created a /var/www folder and instead created /usr/share/nginx/html. I'd prefer to ...
-1
votes
1answer
3k views

chmod all files in a directory [duplicate]

How do I change all files (different types including .sh, .py, and other executable files) in a known directory to permission 775 without listing all of the file names? I mean "all" of them in that ...
-1
votes
1answer
104 views

Not Able to Run TeamViews on Ubuntu Server 18.04 With Putty

I am trying to run TeamViewer on Ubuntu Server 18.04 through Putty connection but I am getting following errors. I have already sudo installed Ubuntu Desktop on this server and I am hoping to create a ...
-1
votes
1answer
308 views

tmpfs with r/w access for all users anytime

I want to share a tmpfs folder (/mnt/ramdisk) between different users. All users should be able to read/write all files from that folder (just like fat32/fuse/samba) Its particularly useful for ...
-1
votes
1answer
128 views

Is encryption any better than 0700 permissions? [closed]

Why bother encrypting when I can simply place 0700 -rwx------ permission on a file or directory? As long as the user that assigned the permission has a strong password, nobody else would be able to ...