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)

2
votes
1answer
42 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
192 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
51 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
51 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
15 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
49 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
10 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
90 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
66 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
40 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
16 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 ...
0
votes
3answers
89 views

Storing text files inside root directory

I am currently in the /bin directory. I am trying to create a text file of the content of the /bin directory and direct it to be stored in another file within the /root directory. I have entered the ...
3
votes
1answer
61 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
41 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
39 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
38 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
54 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
68 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 ...
1
vote
2answers
64 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
44 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
61 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
26 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
33 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
21 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
92 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
46 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
27 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
30 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
81 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 ...
15
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
34 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
36 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
42 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
67 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
109 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
48 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
21 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 ...
-3
votes
2answers
31 views

How can I give the user sufficient permission to access '/' directory?

How can I get the following to work? user@host:~$ cd .. user@host:/home$ cd .. user@host:/$ echo " " > txt.txt bash: txt.txt: Permission denied user@host:/$
1
vote
2answers
18 views

Can't get server access permissions working

I am trying to get a script going that will move files in the apache webserver directory for me without sudo. In my mucking around I somehow got edit and move permissions working for user nhergert, ...
1
vote
0answers
21 views

APCUPSD script can't close program

I want to use APCUPSD to stop a program (called ns_image_server) which runs in a terminal window when it detects that power has been lost, to give that program time to close before the computer shuts ...
2
votes
0answers
49 views

Why does file-roller appear to have lower priviledges than the user

In Ubuntu I have a mounted samba share. I have selected some files in a directory on the samba share in nautilus and attempted to compress them to an archive in the same location. File roller tells me ...
0
votes
1answer
32 views

Directory Permission Order [duplicate]

In Linux, let us assume we have a directory with the following properties: drwx---r-x 29 user1 group1 4096 Jun 22 14:11 dir1 can I, as user2 having group group1, navigate into dir1? Since ...
2
votes
1answer
43 views

ACLs and classic permissions

I'm trying to set up a git server on my FreeNAS server. The problem I have is with setting up the permissions for different users/groups just as I want. Basically I have two different groups: ...