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
1answer
20 views

Return permission in number form of file/ directory [duplicate]

Is there a way to return the file permissions in the format in which they are modified using chmod? For example chmod 755 thisdir then commandx thisdir Would return 755, where commandx is ...
2
votes
2answers
147 views

sudo tar changes extracted files ownership to unknown user

I am running this command: $ sudo tar xvzf nexus-latest-bundle.tar.gz The extracted files belong to an unknown (1001) user: drwxr-xr-x 8 1001 1001 4096 Dec 16 18:37 nexus-2.12.0-01 ...
1
vote
2answers
85 views

Mount doesn't give write permission to user

I just created a new ext4 filesystem on a new drive and I am trying to mount it manually: mount /dev/sdc1 a it does mount correctly, but then only root seems to have write permissions. How can I ...
-1
votes
1answer
50 views

List just the permissions of a file [duplicate]

I want to know how to just check for the permission of a file. I know ls -l yourfile will show you it but I just need the nine permission letters. Thanks
0
votes
2answers
101 views

Unable to read file even though in same group

I created new symbolic link to one file(located in another user home directory) for the user. But unable to read even though the user in same group and the file permissions are 755. [lmurugan@...
0
votes
2answers
63 views

bash file permission error while appending to a file [duplicate]

I am installing Voipmonitor whose setup script has this step: sudo echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab I am getting this error -bash: /etc/crontab: ...
1
vote
1answer
71 views

Linux: How to mount a drive from command line

I normally mount my drives just by opening it from filesystem. It automatically mount when I open/click on a drive. But I wanted to mount a drive from command line. I did ran this command sudo mount -...
3
votes
3answers
448 views

How to allow only machines with specified ip to login via ssh?

I want to allow only machines with allowed ip(s) to login to my system via ssh. For example, userA can use only ip xx.xx.xx.xx or yy.yy.yy.yy to login via ssh, and no other ip can login as the userA. ...
3
votes
2answers
111 views

Fix files with ????????? permissions

I wrote a script to change permissions on all files in a directory: #!/bin/bash files=`find "$1"` for f in $files; do chown "$2" "$f" chmod 600 "$2" done Obviously, the second argument to ...
0
votes
1answer
34 views

grub2-reboot without root

I use the following script (based on code here) to reboot to windows, so I can stop kicking myself every time I start daydreaming and miss the boot menu. #!/bin/bash ENTRY=$( grep Windows /boot/grub2/...
3
votes
1answer
121 views

Can not run executable files from a mounted drive

I have downloaded eclipse and rubymine and previously placed in home folder. Then I used to open both programs by double clicking on eclipse.sh and rubymine.sh. Now I moved these two folders in a ...
0
votes
1answer
84 views

List file in sub directory with certain permission

So basically I need to list files in sub directory which has all permission for user and group but not other. Basically rwxrwx--- All I got is: ls -d */* to show the sub directories but now how ...
0
votes
1answer
67 views

Access from multiple users to same directory but can't change directory group to a common one

I need to give full access to user1 and user2 to this directory: drwxr-xr-- 3 oracle dba 4096 feb 9 23:16 scripts I can't change directoy group because probably that group is needed for other ...
0
votes
3answers
54 views

how do I copy an .iso file to root in Ubuntu

How can i copy an .iso file to the root directory in Ubuntu? Unetbootin cannot detect my ubuntu.iso unless it will be moved to the root. When I attempt to move it, into the root, the system tells me ...
2
votes
0answers
66 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 non-...
0
votes
2answers
269 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
47 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
103 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
118 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
108 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
45 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
142 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
95 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
57 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 rw,user,...
2
votes
2answers
56 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
84 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
233 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
89 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
38 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
87 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
57 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
37 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
58 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 ...
0
votes
0answers
68 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 /root/...
0
votes
4answers
132 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
48 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 ...
0
votes
1answer
53 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", ATTR{address}="00:0c:26:c6:70:93"...
0
votes
2answers
61 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 ...
0
votes
2answers
67 views

Apache2 home directory on Fedora

I want to serve docs on my dev server from my home directory. This is a private laptop, so I'm not really concerned with security as far as you are with most servers / web hosting situations. The ...
2
votes
2answers
37 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
244 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
49 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
184 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
230 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
41 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
10 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
594 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
30 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
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 ...