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)

1
vote
0answers
7 views

Setting umask of libvirt/virt-manager for proper permissions in a directory shared by host and guest

I'm attempting to create a directory that is fully available to both the host and guest systems of a virt-manager/libvirt/QEMU/KVM virtual machine, with read, write and execute permissions for ...
0
votes
2answers
237 views

Does a user have permissions to write outside /home/userDir?

Does a normal* user have permissions to write anywhere else than his own home dir? (no sudo and those privilege escalation tools) I say normal because I do not know more categories than root and ...
1
vote
1answer
25 views

All files created in directory should be owned by bob

I'm looking to have all files in a directory owned by bob. I'm aware I can chmod g+s to get the group set on new files but I don't think I can do anything like that for the user. This is what I've ...
1
vote
1answer
53 views

How do I maintain sudo in a bash script?

If I run this script, how do I pass super user permissions to it? I wrote this just to setup new machines with the basics. I don't want to run every command with elevated permissions, but the commands ...
1
vote
3answers
31 views

Ubuntu Linux: Copying File/Folder permissions from One Machine to Another

I have been given the task of transferring a large (Thousands of Files) Magento Installation to a different server. Being native to Windows, I simply downloaded the files to my pc and FTP'd them back ...
-1
votes
1answer
59 views

Copy a hidden file to a directory?

I'm trying to copy all of the hidden files to a directory. The problem is I can't copy it into a new folder. I get Permission denied error. How do I fix this? I used: cp -rf /usr/include /cse220-p01 ...
0
votes
0answers
15 views

New user can't open FTP with Nginx/PHP5-FPM [closed]

We have Ubuntu server running proftpd with Nginx/PHP5-FPM. Four ftp accounts opening different directories (account1 to a1.com, account2 to a2.com...), I created one new account (account5) and set ...
-1
votes
0answers
16 views

CHMOD in FTP block - RESOLVED [closed]

trying to change permissions on a file i'm FTPing to multiple servers. Using this in a shell script: ftp -n -v $TIP <<EOF | tee -a $FTPLOG user $TUSR $TPAS binary cd $TDIR/bin rename ...
0
votes
0answers
21 views

How to set usb stick's ntfs filesystem's attribute to readonly in linux

I know how to set readonly attribute to ntfs filesystem of a usb device by using diskpart tool in windows. attributes disk set readonly but how to set readonly attribute to the same usb device ...
2
votes
2answers
59 views

Limit a user to his own home directory

I have a user who can even use sudo. I want to limit his access to his home directory only. nothing else at all. I created a group ' limited ' and moved him to this group. Now What? How shall I ...
0
votes
2answers
38 views

Why is crontab giving me a permission error message when I copy my backup?

I use a PuTTY session to copy my nightly backups to another location. I log in as the root user and change directories to /store/BackupLocation which holds backups from the last 100 days. I can then ...
0
votes
1answer
32 views

Why does my nfs mount always changes to be owned by root after mounting?

I have a mount point for my nfs share: drwxrwxrwx 2 patryk patryk 4.0K Feb 4 16:23 nfs_share after I mount it I get $ sudo mount -t nfs 10.9.XXX.XXX:/root/src /home/patryk/nfs_share -o ...
2
votes
2answers
21 views

Change owner for backup file generated by backupninja

I'm using BackupNinja on Raspbian Jessie Lite to create a scheduled backup of my SD. The backup job is configured as a simple TAR file backup. The default permissions on the generated backup files ...
1
vote
0answers
15 views

NFS permissions across multiple LXC VM's

I recently changed my home server setup from a basic Ubuntu Server installation running everything to a virtualised environment. I am currently running ProxMox type 1 hypervisor, with several VM's. ...
1
vote
0answers
20 views

Permissions on nginx log files

I have a PHP/nginx environment on OS X which is deployed to an Ubuntu server. On OS X, nginx is set up with Homebrew, thus my user ("joe") owns the files, whereas on Ubuntu nginx is installed with ...
1
vote
2answers
56 views

How to give this permission (-r--rwx-rw-) using CHMOD? [duplicate]

I am studying for a public exam and see this question (pt-BR) Before answer, I read about chmod and understood that the permission are split in 3 groups (user, group, other), like this: Nível u ...
-1
votes
2answers
36 views

change permissions

I am practising and I am trying to: 1) create files with name of all combinations or r,w,x permission = 512 files; 2) change the permission of that file to match the name I have created this ...
-4
votes
2answers
72 views

Create Directories and Subdirectories as Another User [closed]

I am trying to create directories and subdirectories as another user, from inside a shell script. The problem is, I am running the script as root, so the directory is being created with root ...
1
vote
4answers
45 views

File permissions on data backups

After making a rm related mistake on some of my files (which was fine because I have backups), I started thinking on how I could limit myself to making such mistakes. I have not done anything with ...
0
votes
0answers
29 views

rsync can't update a folder that has no x permissions

I have an rsync job running in one server that keeps folders in sync. The job is running as root in one server and transferred to a backup server as normal user. In the origin server one folder ...
1
vote
1answer
34 views

Allow file to be read by only system command in a C Program

I have a C program program.c that contains a system("/bin/cat file.txt") command, where file.txt is a file in the same directory as the C program. Now I would like to prevent users to read file.txt by ...
-3
votes
0answers
26 views

Permissions on linux server

i'm a non-root user in Linux server, and i want to execute a file and give it only (read-execute) permissions, as this file can't delete any files on my system. is there is a way to do this?
0
votes
0answers
17 views

Systemd user and permissions

I'm trying to deploy an NodeJS app using systemd, the matter is that I've copied my code into /root/dataServer as root. And then I added this service: [Service] ExecStart=/usr/bin/node ...
0
votes
0answers
18 views

rsync : fixing Permission denied error with no rwx permission

We can see that one of our rsync jobs is failing with the following error rsync: opendir "/share/resources/0731402367/docs/quick-check/answers" failed: Permission denied (13) rsync: opendir ...
0
votes
4answers
44 views

Transferring executable files from Windows to Linux via WinSCP

Why file lose execute permission on Windows when it is transferred from Linux to Windows and vice versa?
0
votes
2answers
45 views

Identify all files having no permission for others using find command

I want to identify all files which does not have any permission for others irrespective of any permission for user and groups . How the find command will look like. e.g drwxrws--- 2 jboss users 4096 ...
1
vote
1answer
22 views

Using udev rules to let everyone set ip address to a network interface

I want to let everyone on the system to be able to change the ip address of a network interface. I have wrote a rule in /etc/udev/rules.d like this: SUBSYSTEM=="net", ...
-1
votes
2answers
40 views

Need the sshd server be run in root privilege for a password-less login? [closed]

I mean: if the sshd is't being run in root account, then how can it let the remote ssh client run shell or other command in root account ? if sshd call the login command, then the user could login ...
2
votes
2answers
22 views

Lock A Built-in Application?

I know I am able to lock an application using: sudo chmod a-x /Applications/'Application'.app but I encountered a problem while trying to lock an application, like safari, which is built in. ...
2
votes
2answers
223 views

What are the use cases for write-only and write-execute files? [duplicate]

I understand use cases for r-- and r-x permissions, but not for the -w- and -wx ones.
0
votes
0answers
32 views

mount directory cannot be seen from within apps

I have successfully mounted a local network location on my Android device to /sdcard/routersd with permission set drwxrwxrwx; I can successfully browse within this mounted directory and do copy/delete ...
6
votes
3answers
79 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
33 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
30 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
36 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
117 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
24 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) ...
4
votes
0answers
38 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
41 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
13 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
61 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
25 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
51 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
9 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
11 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
26 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
34 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
22 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 ...