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
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
17 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
25 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
38 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
113 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
23 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
23 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
160 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
33 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 ...
1
vote
0answers
11 views
+50

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
9 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
40 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
8 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
56 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
57 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
29 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
50 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
33 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
29 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
29 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
57 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
35 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
54 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
33 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
39 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
14 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
20 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
19 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
48 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
32 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
27 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
76 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 ...
0
votes
0answers
29 views

normal user runnig a bash script containing root command without password

I have a bash script that contains few commands that can only be run by root, e.g. wpa_supplicant. I would like to allow the normal user to run the script without sudo. I found these posts but they ...
2
votes
1answer
31 views

How does file system permission behave on different systems sharing an NFS export?

I'm familiar with how Linux permissions work on a single machine, but what happens when a directory is shared (specifically via NFS)? Also, what happens when two users are seemingly the same (same ...
1
vote
1answer
35 views

Using find -perm to find setuid files

I want to find list of all suid binaries. I use the command find / -perm 4000 However this does not give me any output. I understand that the SUID file may be in 4xxx permission mode. But if I ...
1
vote
1answer
55 views

accidentally moved and fixed /bin/ directory, but now can't su

I accidentally moved my /bin directory to /usr/bin/bin, anyway, I managed to move it back to its place with # /usr/bin/bin/mkdir /bin # /usr/bin/bin/mv /usr/bin/bin / and then I was able to login ...
0
votes
1answer
61 views

Meaning of chmod 1775

Created a folder "Sample_dir" and analysed its permissions. $ mkdir Sample_dir $ ll Sample_dir/ total 36 drwxrwxr-x 2 user user 4096 Jul 1 19:26 ./ drwx------ 71 user user 28672 Jul 1 19:26 ../ ...
0
votes
1answer
16 views

Create permissions for group to write and files created by owner are only writeable by owner

I have created a folder, /hello: it has the following permissions: Owner = rwx Group = rwx Others = r and the folder is owned by john and belongs to the group sales. I have created another user ...
2
votes
2answers
43 views

What can I do to start a terminal in a X server at boot without giving away root priveleges?

The problem: I run Linux on an arcade machine with a monitor that accepts a 15kHz signal. I can't see anything until the X server starts and a modeline gets the GPU to output the correct signal. My ...
1
vote
0answers
18 views

TUI Tool to change directory permission rules?

There are some strangers to Linux who need to use it in terminal mode but they are helplessly limited to accept that using chmod and chown is dead simple. They would be satisfied only by a tool that ...