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)

5
votes
1answer
67 views

making file immune from a non-privileged script

Is it possible from a bash running as a non-privileged user to mark the file immune so it cannot be altered in any way from any process running as that user? It is OK if other users or a root can ...
2
votes
1answer
48 views

What's the convention for “public” files?

If you have 10k rep on AskUbuntu, you can see this answer, which I deleted, because I'm apparently wrong. Basically, a user's question was about how to change permissions of theme files in /usr/share/...
1
vote
1answer
31 views

ftp user can write anywhere in home directory but not a bind home directory

I have a usb device FAT32 attached to my pi on which raspbian is installed. I mount it on /mnt/sdcard1 ls -l command in /mnt gives me drwxr-xr-x 4 root root 32768 Jan 1 1970 sdcard1 I have an ...
0
votes
5answers
69 views

File permission issues

Is it possible to change the permissions of a particular directory containing some files from 640, with which it gets generated in that folder and change it to 644 once the files are generated for ...
0
votes
0answers
39 views

Make subdirectory world writable even if parent folder is not

As of the title: i have a folder called Public inside my home folder. I need to share this folder (write only) via samba. However if i chmod 772 Public it doesn't work since my home folder is 750. Is ...
0
votes
1answer
56 views

What are the right permissions to set to make files unreadable unless it's my main user accessing them?

Basically I didn't encrypt my Linux (Debian) partition when installing it. However I found a way to encrypt at least home folder so in theory I could put everything there which I want to make sure it'...
0
votes
0answers
37 views

gadmin-proftpd give folder permission to user

I want to know how i can give permission to a folder for an user i made in Gadmin-Proftpd. I can't find this user in the system so how can i give permissions to it? I gave it the group: "group1". But ...
1
vote
0answers
35 views

Is insecure to give users permissions to apps in /opt? [duplicate]

I'm working with some apps (the best example i can give is Firefox Developer Edition) that i put in the /opt folder. These apps work perfectly until they need to apply and update, and that's because /...
0
votes
0answers
13 views

Unable to mount a Network Location from a RHEL4 onto a Windows 2008

I am able to mount a Linux partition /mnt/FS02DATA01/DR_FTP_UPLOADS successfully as Network Drive on a Windows 2008 machine but unable to mount another location from the same machine; /mnt/...
0
votes
0answers
33 views

What is the effect of rsync with -E and --chmod?

Reading through a script I came across an rsync command with the following flags: -rtlDE -c --delete-after --chmod=u+rwX,go-rwx /path/to/dir1/ /path/to/dir2/ Background: I am refactoring the ...
3
votes
1answer
87 views

Allow only wrapper script but not command

Say one has a resource hungry command that users on a server need to run. I want to wrap said command with a wrapper script that will parse the arguments passed and ensure that the command is only ...
1
vote
0answers
81 views

Proper permissions on SFTP upload and download subdirectories in a user's home directory?

I have a server running OpenSSH. I've setup an SFTP server that users can log into. I have created user userName with a folder at /sftp/userName with permissions of 555 and owner root. This folder has ...
0
votes
1answer
119 views

NGINX not running as configured user

This is not a Joomla issue per se as I think it is more of a permissions issue related to NGINX. This was encountered while trying to set up Joomla. Read below but after testing I think this is more ...
0
votes
1answer
40 views

Can I read the public SSH key of another user? [duplicate]

The public component of SSH keys theoretically don't need to be kept private. It was therefore to my surprise that I was unable to read the public key of another user on the system: andreas:~$ cat /...
2
votes
1answer
114 views

How is sudo interrupted in xterm on Ctrl-C? [duplicate]

Please explain in detail (including tty related stuff) how is a sudo foreground process on a X terminal emulator actually killed on the Ctrl-C. See the following example please: $ sudo -u test_no_pw ...
0
votes
0answers
56 views

Ubuntu 15.10 system rescue on Busy Box after botched Deja-Dup backup attempt

I received an external hard drive for Christmas and attempted a backup of the home directory of my Ubuntu 15.10 system. Unfortunately, I botched it, and when I came back to the computer to check how ...
0
votes
1answer
154 views

Suitable permissions for owncloud /data directory using nginx under centos

Having the following software: nginx web server centos 7.1 OS owncloud 8 Application https Web Browsing Protocol PHP-FPM After resolving the issue of /config directory permissions, we reached ...
1
vote
1answer
46 views

Restore file permissions after Windows copy

I lost my drive with my media center on it, and I realized that I had an old backup lying around. But when I went to restore my backup, I realized that all of the files had been copied with a Windows ...
2
votes
3answers
40 views

Find files with group permissions more restrictive than owner permissions

This is an actual work-related problem. Users could previously "su - userx" and was able to execute a script with user:owner permissions as userx:groupz 760 or 540, or modify a file that's userx:...
1
vote
2answers
89 views

How to Backup and Compare File Permissions?

Is there a way you can setup a list of receipts of folders and directories of their correct default permissions that can be used as a backup to compare the correct permissions and be used to fix ...
3
votes
1answer
61 views

setuid example from Wikipedia: 4700

I was reading about setuid on Wikipedia. One of the examples goes as follows: 4700 SUID on an executable file owned by "root" A user named "tails" attempts to execute the file. The file ...
1
vote
1answer
155 views

logrotate fails to rotate logs: error setting owner

Recently I've noticed that logrotate does not rotate my logs. user1@host:~$ /usr/sbin/logrotate /home/user1/logrotate.conf -v gives me an error: error: error setting owner of /home/logs/mylog.log.1 ...
2
votes
0answers
41 views

Reset ownership to default on opensuse 13.2 [duplicate]

Hi guys I did something very stupid to my system Chmod 777 -R / After that everything disappeared including the mouse pointer I'm was able to log in now but things are so corrupted I can't use su ...
1
vote
2answers
56 views

How to copy a folder like /usr in a preserving manner?

I need to preserve owners, groups, and permissions, but also soft and hard links. As far as I can see there are two cases to discern: Links within the folder structure to copy, like lrwxrwxrwx /usr/...
0
votes
0answers
41 views

VSFTPD and ability to write to root

I successfully implemented VSFTPD on CentOS 7, however I would like to know if it is possible to write to the root. Here is a fragment of my VSFTPD configuration file. [root@Turbo media]# vi /etc/...
1
vote
1answer
155 views

share encfs folder within the same group

given an encfs folder mounted under its own user, is it possible to permit read access to someone else (especially a system user), who belongs to the same group? For example user1 owns ...
1
vote
1answer
15 views

Access rights for directory, when you are a part of owner group [duplicate]

Right to the business, here is what I am trying to do foverzar@subsystem /home> ls -aln total 16 drwxr-xr-x 4 0 0 4096 Dec 12 23:07 ./ drwxr-xr-x 17 0 0 4096 Dec 4 13:51 ../ drwx-----...
0
votes
1answer
52 views

/bin (and sub) default permissions

Absolute noob here, I'm loving every last bit of Linux but I'm still at the very first steps. And apparently tonight I managed to work out my first royal screw up, most of all I really hope answers ...
0
votes
0answers
116 views

Sudo, Virtualbox, and Permission issues. (The Good, The Bad, The Ugly)

I hope the title didn't put you off as this is a fairly interesting and nuanced problem. I'm testing a development image of Linux Mint built by myself and a friend. I'm testing it out by trying to do ...
0
votes
0answers
33 views

Supervisord fails to run a program

I've a program that I try to run with supervisord but keep failing. The following is supervisord configuration: $ cat /etc/supervisor/conf.d/application.conf [program:application-web-1] command=env /...
0
votes
2answers
102 views

Dropbox installation stuck with permission

I tried to install Dropbox on my PC running Archlinux and I followed the command at Dropbox webpage. The first command is ok, but when I tried the second command, it gives me the error: Couldn'...
1
vote
1answer
20 views

Why won't this example of setUID work? [duplicate]

I am learning about setuid and setgid where the user executing the script will inherit the owner's permission while running the script. To test this, I created a bash as user fiverr in /home/fiverr/...
0
votes
1answer
19 views

Permissions over script in a directory [duplicate]

Maybe this is for dummies, but i'm not sure. My directory has the permissions: drwx------ 2 root root 4096 oct 16 11:39 scripts But the script have the permissions: -rwxrwxrwx 1 user user 39 ...
0
votes
2answers
62 views

Folder in /tmp won't delete despite the computer being restarted

There is a folder in /tmp/ that won't delete despite my computer being restarted. I know it's not being recreated at restart since the last edited and added date is 23 November 2015. I do know which ...
0
votes
0answers
76 views

No permission to execute C++ binary on Debian webserver - How to bypass?

I am trying to run a compiled C++ program on my webserver (Debian), but the terminal is outputting the following error message: -bash: ./program.bin: Permission denied The rights on program.bin are ...
0
votes
2answers
315 views

File System with permission as “rwxrwSrwx”

I have a shared directory from SAN, whenever I create a folder or file inside that directory, it already has permissions; for directory we have "drwxrwxrwx" permission and for files we have "rwxrwSrwx"...
-1
votes
1answer
23 views

Help with permissions

I am trying to set up permissions, but I don't know what exactly, as a user. Could anyone tell me which permission will allow me to execute the touch and echo commands in a directory?
0
votes
0answers
16 views

Apache22 on OpenIndiana [on hold]

I'm a new user here but I follow you all the time because I am new on Solaris (OpenIndiana) and now I need help with permissions because I am getting the 403 Forbidden error: I see that my version of ...
1
vote
0answers
140 views

CentOs 7 - MobaXterm - X11 Forwarding per user

I am using MobaXTerm to connect to my CentOs 7 Server. I have set X11Forwarding yes in my /etc/ssh/sshd_config file. The root user is able to start the X11-Gui for example gedit. The other users ...
15
votes
1answer
325 views

Why does ArchLinux keep some users/groups after package uninstallation?

I've noticed that after uninstalling the postgresql package in ArchLinux the postgres user and group are not removed automatically. The same is true for some other packages. Investigating this further,...
1
vote
1answer
44 views

Permission denied when writing a file

Upon installation, I have created an extra partition and mounted it as /data. The partition is visible, but I get a Permission denied error when trying to create a file or directory in it. Doing it ...
1
vote
2answers
29 views

Permission mix-up on Mint

So recently I accidentally started changing all the permissions in root to my unprivileged account :(. I know it's a rookie mistake to make. It happened because I was switching between users and ...
1
vote
2answers
83 views

Permission denied scp'ing large file

I'm trying to copy a 4.5GB file to my Raspberry Pi: scp -r ~/firmware/ pi@192.168.2.8:/opt/ pi@192.168.2.8's password: scp: /opt//firmware/.DS_Store: Permission denied scp: /opt//firmware/.git: ...
1
vote
3answers
81 views

Linux Mint 17.2 suddenly loses write access to filesystem

It may be a hardware problem since I'm using new computer but I'll ask anyway. So it happens sometimes - system becomes unable to write anything on hdd, applications start to crash, I forced to reboot....
1
vote
2answers
510 views

File Permissions Sticky&User Execution

After the website of a client has been hacked, I found some files with the following permissions set What exactly S and T stands for? Also, which one is the command to set them with those ...
1
vote
0answers
155 views

Why is sed changing permissions of a file on a cifs mounted share?

I have an Arch linux machine that uses the following fstab entry to mount a share: //192.168.3.1/Documents /mnt/ cifs credentials=/home/tal/.smbcredentials,rw,x-systemd.automount,iocharset=...
4
votes
2answers
429 views

Unable to SSH Using a Private Key Through Bash Script

To start with, I apologize if this is a painfully obvious/trivial issue, I'm still learning the ins and outs of linux/unix. I work with a few servers that require access via ssh and private key to ...
2
votes
1answer
60 views

vsftp doesn't respect chmod setting when uploading outside my local network

Yo! I've a ftp server on my linux machine and I've set the following rules: I keep group and owner and chmod it to 775. When I use it at home (192.168.x.x) it's ok, files keep their group and user ...
4
votes
2answers
355 views

Can users in a group access a file that is in another user's home directory?

I have 3 users A,B and C inside a group 'admin'. I have another user 'D' in whose home directory, there is a project folder. I have made D as the owner of that folder and assigned 'admin' as the group ...
-1
votes
1answer
97 views

vsftpd, 553 Could not create file. How do I chown two different users?

I'm new to linux, but I'm learning! I'm running CentOS 6.7 with nginx and I'm trying to get vsftpd to work. I can log in via FTP okay, but when I try to write a file, I get an "553 Could not create ...