0
votes
0answers
14 views

How can you execute files mounted via sshfs?

This does not work: $ touch testfile $ chmod 777 testfile $ ls -l testfile -rwxrwxrwx 1 quinn dialout 0 Apr 18 10:15 testfile $ ./testfile -bash: ./testfile: Permission denied $ sudo ./testfile sudo: ...
0
votes
1answer
17 views

How can I set default permission with ACL in linux?

I have two groups group1 and group2. I need group1 users to be able to read-write (rwx) files owned by users in group2, but users in group2 cannot write to (r-x) files from group1. All users in a ...
0
votes
0answers
26 views

CentOS User can't overwrite, yet belongs to group

I have a user called james I have a group called cms I have a folder called htdocs htdocs belongs to user:group of cms:cms james belongs to the cms group when james tries to overwrite a file in ...
0
votes
0answers
20 views

Seting up a user account associated with an ftp provisioning service the most eligant way?

I'm in the midst of configure a phone system using FreePBX-Distro and things are going well, however seeing as I've run into a small issue and I have very little expertise in Linux I'm looking for ...
0
votes
0answers
20 views

Trouble Accessing Shared Folder from Virtualbox Server

I installed Turnkey Linux on Virtualbox (LAMP flavor), on Windows 7 host. I wanted to do away with XAMPP and use some stuff which are not available on Windows. The guest is using a bridged network. ...
0
votes
0answers
64 views

Permission denied on Debian (under Android)

I have a Motorola Atrix (MB860) device working perfectly with Debian Linux image from Linuxonadroid. I have a emmc storage on Atrix that I'd like to share with Debian. This is how it looks like the ...
0
votes
0answers
12 views

What is the right strategy for permissions for /var/www directory?

It looks very tricky as I need to access this directory to create and edit files (not as root of course), besides PHP scripts will probably also need to modify the directory: create new subfolders, ...
0
votes
0answers
43 views

useradd - Specify group “users” or create a whole new group?

When creating a normal new user, it is a best practice to use -g 100 option, which creates a user like test:users or ignore the parameter and let useradd to create a user with test:test ? Which one ...
0
votes
1answer
35 views

Stop deletion of files in Linux

I'm looking for a way to stop accidental deletion of some important files in Linux, but with a couple of criteria. The file has to remain writable (so it can of course still be replaced with rubbish ...
2
votes
2answers
64 views

How do I change permissions on a directory

I'm using CentOS and I would like to know how to change permissions on a folder with multiple files in it. I have used the following commands on the folder as root (Let's say folder =A) : chmod ...
1
vote
0answers
24 views

Sync Linux system with Windows over SSH while retaining file permissions

I am trying to sync files between my Linux machine and my Windows machine over SSH (SFTP). Currently when I do this, the files lose their Unix file permissions because windows doesn't support Unix ...
2
votes
0answers
47 views

Change group or permissions when a file is moved to a shared directory on Linux

I've set up a Linux server accessible with ssh and Samba share. Every user has his own folder USER/ and a public folder USER_public/. Permissions on the USER_public/ are set up using setfacl in such ...
0
votes
2answers
40 views

File transfer and editing 500 permission error

I am hosting one of my Wordpress sites on a local LAMP in opensuse. I have transferred the site from my backup but when it was installed the site was broken somehow and if try to delete, edit or even ...
0
votes
1answer
24 views

500 error after changing directory permission on wordpress

I changed the permission of uploads directory of wordpress on cpanel file manager. After that my site started to give 500 error on homepage. I didn't do anything else. After that I changed the ...
1
vote
2answers
51 views

How to set specific file permissions when redirecting output?

This is probably a duplicate, but all my searches are turning up questions about permission denied errors. I am running a command in a bash shell. I want to redirect output to append to a file that ...
1
vote
1answer
29 views

No Permissions?

I am trying to edit /etc/gai.conf. I am able to get to it in my file folders, but I am not sure how to edit it through the terminal. When I open it, I can view it, but not make changes like I want. ...
1
vote
0answers
52 views

Linux/Samba Windows7 and permissions on a per user basis

I would like to set up my NAS properly with user and group permissions. While this was easy to accomplish for all Linux boxes using NFS, I cannot get it to work with Windows and Samba, Windows7 and ...
2
votes
1answer
48 views

How to delete file with no write permissions for any user?

I find myself in a strange situation where a script wrote files with the following permissions: -r-------- 1 user1 user1 file1 Dec 24 14:53 -r-------- 1 user1 user1 file2 Dec 24 14:54 -r-------- 1 ...
0
votes
1answer
45 views

List permissions all parent directories of a single file [duplicate]

Say I have a file located at /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java. I want to list all its parent directories in order to view their permissions in order to get something like ...
1
vote
1answer
42 views

Allow a regular user the ability to read all (otherwise protected) directories

I have a system set up with the following users/groups: user 1 & user 2 are members of group 1. user 3 & user 4 are members of group 2. user 5 & user 6 are members of group 3. user 1 ...
0
votes
1answer
52 views

ACL's Centos Linux - Not being inherited

Trying to work out the needed ACL's... OS is Centos Linux Situation: Folder called home. User called user1 and User called user2. user1 owns folder home, user2 has RWX to home also. With ACL's Im ...
-1
votes
1answer
33 views

Access permissions for directory in Linux

I have a programm which creates log files in web-server directory (/var/www/log). Every day it generates one new log file. I've set access permissions for this directory to 777 chmod 777 -R ...
2
votes
2answers
47 views

Give a warning when using mkdir in a certain directory

Is there any way to give a warning when a user tries to use mkdir when in a certain directory? There are supposed to be shared folders, but someone will make a subdirectory and forget to chmod it, so ...
0
votes
1answer
74 views

Why some files are read only for root by default?

In Linux systems, the root user has privileges to change permission for every file. Then what is the logic of some files having read only permission for the root user by default? File in concern: ...
0
votes
1answer
36 views

Linux: User vs group permissions

I'm fairly new to Linux and testing around with it. I'm SSHing into the server, and I created a testuser while logged in as root ussing adduser. I noticed that it didn't create a home directory, so I ...
0
votes
0answers
57 views

chmod with extended ACLs

When setting the permissions on a file that does not have extended ACLs set, the 'user', 'group' and 'other' permissions are set. This can be seen with getfacl: $ touch testfile $ chmod 600 testfile ...
1
vote
1answer
50 views

Fixing lost symbolic link status [closed]

I have a couple of soft symbolic links that have lost their link status and have become normal files containing link TARGET_FILE_LOCATION I searched quite a bit to find a way to restore their ...
1
vote
2answers
569 views

How to set umask globally?

I am using a private user group setup, i.e. a user foo's home directory is owned by foo:foo, not foo:users. For this to work, I need to set the umask to 002 globally. After a quick grep -RIi umask ...
2
votes
2answers
92 views

Full rights on new files created on mounted partition

I have created a new partition (ext4) on a 4tb disk and i want to use that partition to store media. Is it possible to mount that partition and set full rights to new files created by various users? ...
0
votes
0answers
217 views

Group member cannot create files/directories in folder

I'm trying to set up my Linux server and I managed to get stuck at this point: I created a group called 'gitusers' and added a user to it (let's call him 'foo') I created a folder called 'website' I ...
1
vote
2answers
185 views

How to make files created in a directory owned by directory owner?

Is there any method on Linux to effect all new files created in a directory to be owned by the directory's owner instead of the creating user's owner?
0
votes
3answers
131 views

Add read permissions to all the directories of a path

I want to add (not modify other file permissions) for all the directories in the path written bellow. Something like chmod -R xx4 /home/mDB/admin/KNUCKLES/dbs/ The path /home/mDB/admin/KNUCKLES/dbs/ ...
0
votes
1answer
65 views

How can I output a list of all users who have read (and/or write) permissions for a specific file in Linux?

Suppose I have a file MyFile. Are there any commands that will print to console a list of all users in the system that can read the file?
1
vote
1answer
224 views

ubuntu remove file with full permissions

I created a file in the /tmp/ directory. The file is owned by mysql user and has full permissions, i.e. -rw-rw-rw- 1 mysql mysql 16 Sep 23 12:44 artists.csv Now I want to delete it, but get ...
1
vote
3answers
955 views

Restrict folder access in Ubuntu

I want nobody to access my private folder, I'd like to set a password for it or just make it only accessible by root user. How can I get it? I'm using Ubuntu.
1
vote
1answer
131 views

Qt creator throws permission error on project (files owned by me) within directory of root

I have recently changed to arch linux from ubuntu and copied my qt project to my home directory, Whenever I open the project with qt creator, it gives me permission error and says that it cannot ...
0
votes
1answer
54 views

Copying File From One User To Another

So I have this file stored in my account. It's postgres dump. To be able to use postgres it seems that I have to execute the following command 'sudo su - postgres'. Once I do this I am now working as ...
0
votes
0answers
533 views

How to restore Windows 7 default file permissions and security options?

Good morning everyone. Yesterday I had a few Problems with Windows 7. I tried to remove some leftover files from a Linux OS on my external hard drive. Since Windows has problems with too long file ...
0
votes
0answers
70 views

Proper permissions with vsftp on CentOS

I recently migrated from Apache on shared server to nginx on a VPS. I installed and configured vsftp in a manner that whenever I add a new user on server, its accessible by ftp. Now to problem is ...
0
votes
3answers
562 views

How to make directory writable to myself in Linux?

I have directory drwxr-xr-x 20 root root 4096 Aug 11 17:05 webapps now I want to allow myself (dims) to write to this directory. bash-3.2$ groups dims dims : web2 users How to accomplish this? ...
0
votes
2answers
94 views

Forcing application to create files with 0755 permission

I'm running a game server (ut2004) on Centos 6. It creates demos, logs and other stuff which I need to process later with other applications. But the problem is - all these files have 0600 permission ...
2
votes
1answer
95 views

What happens when a file has restrictive permissions and the owner is not available?

I'm curious as to what happens to a file if let's say, it's permissions only allow the owner to read and write, and the group and everyone have no access at all. (700, or rwx------). Let's say the ...
0
votes
0answers
78 views

file permission issue in linux

I have below folders and file with the given permissions. Since I gave full group permission to folder targetdir, I assume file test.txt should able to copy to targetdir, but it fails with permission ...
0
votes
0answers
371 views

Give a single user read only permissions in Linux

Not sure if this is possible, but figured I'd ask since I didn't see it answered anywhere else. At least nothing this specific. We have a CentOS server that I want to give a graphic designer access ...
3
votes
3answers
48 views

trying to change permissions on files in a directory to read only

I have a directory which currently hase the following permissions drwxrwsrwx I need to restrict permissions on the files under the directory to read only but when I use chmod 644 I get permission ...
2
votes
3answers
174 views

Shell script not running as by “./” but it runs by “sh”

I am running a script on arm target board as a super user, i.e., as a root user. But the script is not executing if i run it with following syntax root@freescale$ ./Script.sh -sh: ./Script.sh: ...
2
votes
1answer
583 views

How to remove file permissions from an external hard drive?

My macbook recently died and I am currently trying to figure out how to copy my data. What I did was, I took out the hard drive, put it in an enclosure and plugged it in to my other laptop that runs ...
0
votes
0answers
360 views

chroot SFTP user can't modify any files in mounted drive

Well, here are the steps I’ve done; the problem is listed at the bottom. sudo mkdir /home/test sudo useradd test sudo chown root:test /home/test sudo chmod 755 /home/test sudo groupadd testgroup sudo ...
0
votes
1answer
433 views

How can I change permissions for a folder and all sub files and folders in Linux?

I know there are a few questions on this topic on the internet but I have a slightly different question. so when I click on the change permissions for enclosed files and change the permissions for ...
0
votes
1answer
66 views

what's the meaning of “?” in file/folder mode bits in CentOS 6.4?

Environment: 2 desktops. A is a Ubuntu 12.04.2 LTS B is a CentOS 6.4 A mounts B's folder via sshfs. The output of 'mount' in A: Lebian@zeus:/share on /mnt/share type fuse.sshfs ...