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)

6
votes
3answers
140 views

Why doesn't Linux allow user-level network port permissions? [closed]

Every once in a while, I'll search for how to do user-level permissions for network port access in Linux and come up rather dry. For example, if you have a machine that runs a critical process that ...
2
votes
1answer
113 views

how do you find all files and directories without sticky bit?

how do you find all files and directories without sticky bit? I have a bunch of old files that I need to delete so I use: find . -mtime +3 -a \( -type f -o -type d \) But then this find command will ...
1
vote
0answers
34 views

Change User Permissions from windows to a shared folder by OpenIndiana

I have a problem with OpenIndiana, I am migrating a server that works with Napp-It. But, once migrated the Hipster Realease Napp-it not support that OS. I am trying to find out how can I do by ...
0
votes
1answer
37 views

Change the permissions of the files

I have a script to copy binary files to the remote machine and once the files are copied in the tmp file of the remote servers. It automatically sudo login to the host and does cd /tmp and chmod 775 ...
0
votes
0answers
9 views

SFTP Directory Permissions [duplicate]

Is there any way that I can allow SFTP accounts to access a directory without having access to any other folder. For example, they can access the folder /var/www but they cannot access the folders ...
3
votes
2answers
565 views

umask XXX (permission bits) to give execute permission to files

Because files created by default having permission of 666 and umask (in permission bits form) subtract bit-wise from this permission, can we do something to give execute permission without using ...
0
votes
1answer
28 views

Is sudo useful to protect my data from malwares?

I'm considering creating a separate account for browsing, and launching my browser with sudo -u browseraccount {firefox,chromium,etc}. I wonder if this can prevent a malware (especially ransomwares) ...
5
votes
1answer
61 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
46 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 ...
1
vote
1answer
26 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
63 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
28 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 ...
0
votes
0answers
27 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; ...
0
votes
0answers
30 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
58 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
58 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
50 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
33 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
97 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
54 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
126 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
40 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
36 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 ...
1
vote
2answers
69 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
48 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
91 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 ...
1
vote
0answers
40 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
55 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 ...
0
votes
0answers
26 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 ...
1
vote
1answer
83 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
14 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 ../ ...
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
79 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
25 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
74 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: ...
1
vote
1answer
18 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 ...
0
votes
1answer
18 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
53 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
68 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
192 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 ...
1
vote
0answers
102 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
315 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 ...
1
vote
1answer
42 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
28 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
59 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
69 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 ...
1
vote
2answers
408 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 ...