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.

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

Failed to change last modified date of the file after do some edit in /var/www

on ubuntu server (14.04) I have a virtual host which is in /var/www and my linux user is group of www-data. But I noticed that, if I change something on a file in /var/www last modified date does not ...
4
votes
1answer
42 views

How to stop yum changing file permissions

If you upgrade a package, yum sets the file permissions to the permissions that are set in the new version of the package. How can I stop it doing this? I use puppet, and by default the directory ...
4
votes
3answers
97 views

Compression / archiving that keeps permissions and file owner?

I know that similar questions have been asked about permissions, but which form of compression or archiving keeps the permissions and file owners of each file and directory? I was considering the ...
2
votes
2answers
62 views

Is it possible to change the directory permission to its previous state?

I have accidentally changed the permission of "/usr/bin" directory and its files by the command: $chmod 775 /usr/bin -R First, there was a problem with sudo but I fixed it. Now I am suspicious that ...
0
votes
1answer
29 views

Always get Error: Operation not supported for: find /Path/ -type f -exec chmod 755 {} \;

I want to change the access permissions for MP3 files on an external 2,5" HDD on my Raspberry Pi on which I run an actual version of Raspian. To do so I tried to use the following command: find ...
1
vote
2answers
37 views

The Deny the permission of mounting any drives to a user

I'm using Linux Mint 17.2 Cinnamon. There are multiple partitions on /dev/sda. /dev/sda1 is where the system resides, /dev/sda2, ..., /dev/sdaX are NTFS partitions. There are two users admin and ...
2
votes
2answers
35 views

warning: Filesystem seems to be mounted read-only

I have an old SGI indigo with an EFS file system (Extent File System ), and the password needs to be reset. I can mount the hard drive, but read-only. I need write permissions. # mount --rw -t efs ...
0
votes
0answers
12 views

What permissions apply if specific user's permission on file or directory differ from user's group to which this user belong to in Linux? [duplicate]

Case 1: User has "rwx" permissions to certain file or directory. But has no permissions "---" in group it belongs to. Question: who wins - Does user have "rwx" or "---", effectively (not what's ...
0
votes
0answers
16 views

Is there a way to change file/folder ownership on a server in Ubuntu/Kali-Linux? [migrated]

I accidentally changed file ownership of a folder in Windows 7 and now nobody can edit, copy, view, move it, etc. Not even the administrator account account can change it back. I tried icacls and ...
0
votes
0answers
26 views

Jboss startup ownership issue

Facing few issues with jboss startup . After jboss startup , permission of few files got changed because of which we had to manually change the files and start jboss . $ ls -l /etc/init.d/online ...
-1
votes
2answers
29 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 ...
-2
votes
1answer
40 views

How to make a NON-WRITABLE directory?

Actually i'm aware of a "PHP Web Folder". There seems to be some potentials of incoming attacks. So that i want to make sure this whole directory is READ-ONLY (Only writable by ROOT). Let's say the ...
3
votes
3answers
123 views

Symbolic link creation failing: change ownership issue

I am facing some issue with creating soft links. Following is the original file. $ ls -l /etc/init.d/jboss -rwxr-xr-x 1 askar admin 4972 Mar 11 2014 /etc/init.d/jboss Link creation is failing with ...
0
votes
1answer
26 views

Could not chdir to home directory when create and login a new user?

I'm a new user of CentOS and now I want to create a new user of my system and let it can only access one directory. First I create a group named test. Then: useradd -g test -d ...
2
votes
1answer
30 views

Using ACL Permissions without allowing other groups to access a directory?

0. Add user bkupusr to group extbk leeand00@hostname:/home/leeand00/$ sudo groupadd extbk leeand00@hostname:/home/leeand00/$ sudo usermod -G extbk bkupusr 1. Created directory structure: ...
2
votes
3answers
172 views

`tail -n 40 /var/log/apache2/error.log` without `sudo`

Many times during the day I need to inspect my Apache log: sudo tail -n 40 /var/log/apache2/error.log I then have to provide my password. It's a clumsy workflow, so instead I am adding ...
1
vote
2answers
48 views

Wrong eUID in `/proc/PID/status` when SETUID is used

While doing a wargame challenge, I ran into an issue with permissions. The info given by /proc/PID/status is not in adequation with the permissions that should be given to the processus. I am user ...
2
votes
0answers
29 views

Sed is unable to copy temporary file to original file [duplicate]

My aim is to edit the file(Whose owner is user1) using script where user2 don't have permission to directly edit the file but it should be edited when executed through script by user2, so I set SUID ...
2
votes
1answer
50 views

Give specific user permission to kill other users with logind?

Is it possible to give one user (the "main user") the permission to kill other users using logind/loginctl?
0
votes
0answers
11 views

Managing users and groups

I am using ubuntu inside a virtualbox and has very little knowledge about unix. I am following this tutorial. And in it there's a portion to add a user to the group. $ sudo groupadd --system webapps ...
1
vote
3answers
44 views

permissions of script to change permissions?

I have a VMWare VM that directly accesses some disks. In order to run (without running vmware as su which has its own problems) I need to change the ownership of the devices. I've done this manually ...
1
vote
0answers
9 views

defining firewalld permissions without SELinux in Debian

I don't find an explanation regarding the permission system of firewalld in Debian without SELinux. I have multiple users. How do I grant one user admin permissions to firewalld while denying these to ...
1
vote
2answers
69 views

What is the file permission of /etc/shadow in CentOS?

What is the default file permission of /etc/shadow in CentOS? Is there any difference in the default file permission of /etc/shadow in previous versions of CentOS?
5
votes
2answers
59 views

`sudo cp -a` changes ownership to root (instead of preserving the original user)

I was trying to backup some directories and some of the copies made by sudo cp -av resulted in being owned by root while others preserved their attributes. Is this a known issue or am I missing ...
1
vote
0answers
31 views

logadm permission issue in Solaris

Facing the following issue in a solaris box while using logadm tool . It is showing me permission denied error . -> logadm -w princelog /html/web/www.log -C 3 -s 500m -z 0 logadm: Error: ...
1
vote
1answer
15 views

Unable to execute program without root privileges regardless of group or permissions

avrdude is a simple tool that allows downloading of a program to a target microcontroller. For completeness, the command I am trying to issue is: avrdude -p atmega328p -c usbtiny -P usb -v -U ...
3
votes
1answer
52 views

Not able to cd into world-readable directory on NFS

There is a directory created by root, and I am not root user. But I am not able to do a cd into that directory in spite of having execute permission for others. Why so? Has the write permission on ...
0
votes
1answer
35 views

python && unix permissions (gitlab) [closed]

I have directory /home/git/repositories with rights 770 and uid=git,gid=git user1@gitserver:~$ ls -la /home/git/ | grep repo drwxrws--- 42 git git 4096 Jun 30 17:02 repositories I have user ...
1
vote
3answers
30 views

To Rsync files where permission denied

I want to find those files which I cannot copy to another location such that I could do Rsync. I have an external HDD and my system´s HDD. The external HDD has files which my system is missing. I ...
1
vote
1answer
32 views

What are the default file permissions in CentOS?

What are the default file permissions in CentOS 5, CentOS 6 and CentOS 7? Is there any difference in the default file permissions between these OSs?
1
vote
0answers
59 views

User has write permissions but cannot write to files

I am using a python script to write (and sometimes overwrite) data files. I can write new files just fine, but am getting permission denied when trying to write to existing files. What's strange is ...
1
vote
1answer
38 views

Which group should own /var/www/html?

I have a CentOS 7 VM setup on my Windows 7 host. I have installed vsftpd and ftp and can now successfully connect from the host with FileZilla, but the user I log in as doesn't have permissions to ...
2
votes
1answer
66 views

Getting 'Forbidden error' browsing a page in localhost with permission to read, write and execute

I guess there's something I'm missing here but I need to solve this in order to feel confident while learning how unix/linux OS work. I've seen some similar questions on this topic but I don't think ...
0
votes
0answers
14 views

Giving S_IWUGO permission to module parameter results in compilation error (while S_IRUGO or S_IXUGO doesn't) - why? [migrated]

I wrote a simple kernel module to learn module_param feature of the kernel module. However, if I give the S_IWUGO, S_IRWXUGO or S_IALLUGO permissions for the perm field, I get the follwing ...
1
vote
2answers
57 views

How to Change Owner of a Directory

EDIT: The problem was that Apple uses permissions to mark backups and prevents you from modifying them (probably a security feature). By using chmod -RN <dir> I removed ACL data from all the ...
1
vote
2answers
36 views

Stat substitution command to capture numeric file permission in Solaris 10

There is no stat command in Solaris 10. Is there any way to get numeric file permission?
1
vote
1answer
46 views

Starting Apache Httpd at Boot time with Zero intervention, CentOS and authbind

I want to start Apache Httpd when Linux starts (with Zero intervention like submitting the root password, I don't want write the root password to start the apache service!!!) Later of Apache was ...
2
votes
1answer
20 views

Allow certain guests to execute certain commands

I would like to create a new user on some of my Debian/Ubuntu hosts that is able to update the server using the commands apt-get update and apt-get dist-upgrade, but I do not wan't to give them full ...
0
votes
2answers
23 views

Peristent LiveCD: Allow user to write-access to usb key

Using kubuntu liveCD in persistent mode, I'd like to allow user to write on boot usb key (to put data out of "casper" file). USB (root) is auto mounted in /cdrom kubuntu is "main" user (uid 999) ...
1
vote
0answers
20 views

Why can't I view a folder in the Files navigator, but permissions are 766, owned by me?

I have the following mounted drive: caleb@ubuntu-box:/media/data/plex$ ll total 20 drwxrwxrw- 5 caleb caleb 4096 Jul 11 13:29 ./ drwx------ 3 caleb caleb 4096 Jul 10 19:48 ../ drwxrwxrw- 4 caleb ...
0
votes
2answers
54 views

Cannot change ownership of folder owned by nobody

After a forced reboot a particular folder in my home directory is owned by nobody. I am trying to change that to root but I get the following chown: cannot read directory ‘databases/’: Permission ...
0
votes
0answers
17 views

New files in a mounted directory are being created with a different user and removing write permission for other users

I am running a python script that outputs files into a mounted directory on a different computer. The script can be run multiple times in a way that overwrites the contents of created files. However, ...
3
votes
1answer
33 views

Why am I able to write a module parameter with READ ONLY permissions?

I wrote the following simple linux kernel module to test the param feature: #include<linux/module.h> int a = 5; module_param(a, int, S_IRUGO); int f1(void){ printk(KERN_ALERT "hello ...
0
votes
0answers
26 views

Linux RPM installation - Who defines the rights?

I am new to Linux, and I am using rpm -i to install an RPM package successfully. However, I do realize that I have to use the root account to install the package every time. I have several users in ...
2
votes
0answers
29 views

File permissions for kernel have changed in OSX Yosmite, why?

I am working my way through the book Learning Unix for OSX Mountain Lion (I don't have access to the updated version for OSX), in which it demonstrates that using $ ls -l /mach_kernel should ...
1
vote
1answer
78 views

Why can't I write to my ext4 partition even with 777 permessions?

When I touch a new file for example I get: touch: cannot touch 'file': permission denied It is a partition that is mounted in the /media directory on demand. I am the owner and I've had it's ...
14
votes
3answers
1k views

Purpose of permissions such as 0111 or 0333

What is the purpose of Linux permissions such as 111 or 333 (i.e. the user can execute, but cannot read the file), if the ability to execute does not automatically imply the ability to read?
23
votes
4answers
4k views

What is so special about Linux permission 004?

I was reading Practical Unix and Internet Security, when I came across the following lines which I couldn't comprehend. If you are using the wu archive server, you can configure it in such a way ...
0
votes
0answers
11 views

Configuring Samba to serve Unix-style files (e.g. owners, permissions)

I just learned that Apple has deprecated its own AFP network filesystem in favor of SMB2. I have looked, but can't find any solid information on how its handling of SMB2 implements Unix-style file ...
0
votes
1answer
37 views

Owners and groups of everything inside /var are changed mistakenly [duplicate]

I have recursively changed owner and group of /var to root:root. I have mistakenly ran following command while standing in /var. I thought I was in /var/www, sudo chown root:root . R Now many ...