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
4answers
181 views

set read and write permissions to folder and all its parent directories

I need to set read and write permissions for root user to directory subfolderN and all its parent folders till root. I can do it by hands: $ sudo chmod +rx /root/subfolder1/subfolder2/subfolderN $ ...
2
votes
2answers
153 views

Execute user script as root in startup applications

I just created a script (logscreenlock) to log lock/unlock screen events (derived from this post): #! /bin/bash dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver'" | ( while ...
2
votes
2answers
2k views

Pulseaudio failed to create secure directory in nfs share

My pulseaudio cannot run, because it attempts to create ~/.config/pulse under a different user. (probably pulse?). user@localhost ~$ pulseaudio E: [pulseaudio] core-util.c: Failed to create secure ...
0
votes
0answers
34 views

Enlightment on Arch Linux: Possible write permissions issue

I am trying the Enlightement desktop the last days. It seems good, but I am having an issue that bugs me. Firstly, it came up when trying to add shortcuts on the desktop. I wasn't able to edit the ...
0
votes
1answer
123 views

hiding a php file/folder with php file from ftp user

Is it possible to hide the php files or hide a folder with php files from FTP user accessing? But the files can be executed on a webserver?
0
votes
1answer
382 views

Allow www-data to perform specific commands

I need a PHP script to perform git pull however I am not naive enough to give it permissions on git. I've wrapped git pull in a script which www-data has permissions for, but I'm not sure how to give ...
2
votes
2answers
82 views

File permissions and saving

Let's say you open a file on which you have write permission. Meanwhile you change permissions and remove write permission while you still have the file open in some editor. What will happen if you ...
0
votes
2answers
105 views

How to configure polkit with KDE?

My system is Gentoo amd64, KDE 4.11, and lightDM. I updated my system recently, and found out my user account can't shutdown from KDE. The function is disappeared. I looked for a long time, and I ...
1
vote
0answers
22 views

Setting up a shared folder with group: ACL and file creation [duplicate]

I'm very new to ACL, and at the moment I've been trying to set up a shared folder such that any user belonging to a certain group (lets call it "thegroup") can have full access to the folder (which ...
1
vote
1answer
260 views

RHEL - permanently unmask all sub-folders and files

I'm new to RHEL, and I'm having issues unmasking a collections of directories. I have a folder where content will be generated content from a python script. The subfolders will exists for a period ...
0
votes
1answer
99 views

mount tmpfs preserve current permissions

I have a directory of a web application cache and this has the permissions 755 (default), and I configured setfacl additional permissions. the problem is that when I restart the system, the ...
2
votes
1answer
63 views

Bad to own a directory outside of your home directory?

Some how, can't remember why, I got into the habit of downloading source to the directory /opt, which I chown to my user/group. I have this feeling that it is not a good thing to do. Is there ...
1
vote
1answer
413 views

“Permission denied” when writing to /dev/stdout

Why cannot I write to /dev/stdout? I am logged in as the root user, what greater permission could I have? root@ubuntu:/# tcpdump -i 2 -w /dev/stdout tcpdump: /dev/stdout: Permission denied The ...
1
vote
2answers
89 views

No *shutdown* function in KDE

My base system is Gentoo amd64, up to date. Before the upgrade, I have the shutdown button in the KDE menu. But after the upgrade, this button is gone...I think it is because of the permission ...
3
votes
2answers
70 views

Exclude paths that make find complain about permissions

I need to generate a file list from a disk volume. Some of the directories (all hidden directories under the root directory) have strange permissions that causes find to complain. I try to exclude ...
3
votes
2answers
1k views

Create user who can only access one directory [duplicate]

I would like to create a user that only has access to one folder and nothing else whatsoever. I have already created a user but he has access to other parts of the system according to corresponding ...
3
votes
1answer
302 views

Can edit file as root, but not using sudo

I just faced a really strange situation. I was trying to edit file /usr/lib/thunderbird/thunderbird.sh, which has the following permissions: $ ll /usr/lib/thunderbird/thunderbird.sh -rwxr-xr-x 1 ...
0
votes
1answer
72 views

File permissions when mixing command line and server

I have a PHP server which creates folders and files for certain things. I also run supporting code from the command line operating on the same folders and files. The problem is that when running from ...
0
votes
1answer
482 views

UNIX: how to change group of read-only file system

I am trying to change the group of a file that I (user123) am an owner of but I am getting an error. It won't let me change the directory permissions, either. It keeps saying the file system is ...
1
vote
0answers
520 views

Permission denied for user accessing mount

Using root I can mount another Linux share no problem. root@crunchbang:/mnt# mkdir javalib root@crunchbang:/mnt# mount -t cifs //10.1.3.7/javalib ./javalib -o username=guest Root can read/write to ...
2
votes
1answer
655 views

Cent OS + VSFTP, 553 could not create file, how to allow uploading of files?

I have a ftp server running on Cent OS VM. the goal: public map can be seen by everyone (readonly for anonymous users, write for logged in users) upload map can only be seen by local users logged ...
3
votes
2answers
121 views

Log in as one user but authenticate as another

This might be a weird question but I wonder if there are possibilities to this. When I'm configuring a system I prefer to be root so that I don't have to sudo everything. However, the root account is ...
2
votes
2answers
415 views

How to change default permissions of files created by a process?

I'm running a game server (unreal tournament 2004) on Centos 6 x86. I use a sh script to start it in a background process. This process (game server) creates different files (demos, logs) and they all ...
0
votes
0answers
58 views

Permission issue on OpenSuSe 12.3

When running openSUSE 12.3, the updater pops up with mysql/mariadb updates available. Being a trusting person, I always update whenever any update is offered. I have spent the day regretting this ...
0
votes
0answers
57 views

Root has no permission on virtual console screen devices

Even being root I can't do the following: # cat /dev/vcs1 cat: /dev/vcs1: Operation not permitted And the rights are set correctly: # ls -o /dev/ crw-r--r-- 1 root 7, 1 Aug 5 22:00 vcs1 ...
0
votes
0answers
8 views

File permissions of file when tranferring from Windows to Unix [duplicate]

When I am uploading a file from windows PC to Unix ,the permissions of file are --wxr----t on unix machine , whereas umask is 0022 .I am not able to understand from where is the file getting ...
0
votes
2answers
84 views

File permissions of file when tranferring from Windows to Unix

When I am uploading a file from windows PC to Unix ,the permissions of file are --wxr----t on unix machine , whereas umask is 0022 .I am not able to understand from where is the file getting ...
2
votes
0answers
43 views

LXC: Have rootfs mounted without nosuid

I have the container's rootfs in a volume mounted with the nosuid option. When I start the container, its / mounted is then also mounted nosuid, which breaks programs such as sudo. How can I avoid ...
2
votes
1answer
245 views

Can't login to remote debian system with RSA key and ssh.exe from Cygwin

I need to login to a Debian server using ssh.exe from Cygwin. I've generated an RSA key and appended it to the authorized_keys file. Debian is OK, because I was able to use the RSA key using PuTTY ...
1
vote
0answers
265 views

How to edit /var/www files using phpstorm?

I want to edit the /var/www files using any editor like phpstorm or eclipse etc, without changing the default user/groups setting for /var/www. Since phpstorm is invoke by a script , I dont know how ...
2
votes
1answer
171 views

How do I grant someone else access to my linux server

If you administer a Linux server, what steps do you take to properly grant someone else access? Assuming they will log in over ssh, don't already have an account, and will need root access. ...
1
vote
2answers
90 views

FS permission scenario

How can I achieve this files & folders permissions scenario: Consider these folder: Folder A: 640 root apache /var/www/A/ Folder www: 640 root apache /var/www/ and this linux user: id user1: ...
2
votes
1answer
278 views

Poweroff or Reboot as normal User

To run the command poweroff or reboot one needs to be super user. Is there anyway I can run this as a normal user? I just don't want to sudo and enter my password every time I reboot or power off.
2
votes
2answers
171 views

How to hide someone else's directories from a user?

I have several folders: /home/user1/ -u user1 -G user1 /home/user2/ -u user2 -G user2 /home/user3/ -u user3 -G user3 I created three users user1, user2, user3. Each user has own group. Any user can ...
2
votes
1answer
188 views

Allow world access to directory under 0750 directory

I prefer to keep my /home/dotancohen/ directory as permissions 0750. However, I do need Apache to access /home/dotancohen/someProject/public_html/. I know that I could configure the home directory as ...
1
vote
0answers
125 views

Can't unlock a file for path change

I'm trying to order the path entries on my mac, but it seems that my /etc/paths file is Locked. I tried the instructions on this link, but I can't save the file as it is locked. I even tried chflags ...
1
vote
1answer
201 views

halt, poweroff, shutdown, reboot don't require root?

For some reason, I can run halt, poweroff, shutdown, and reboot as a regular user without root. How can I fix this? Is it something to do with user groups, or is it a seting somewhere?
1
vote
2answers
73 views

Privileges on Linux?

In Linux, I had created a userid. After creating this, I encountered a problem that the .EXE Files are not opened on simple click. They seem to be not privileged for my user account. How can I ...
1
vote
1answer
292 views

Permissions in Ext4 Truecrypt Drive

I just used the Truecrypt GUI to encrypt my entire USB hard drive (currently /dev/sdb). I formatted it to ext4. Now, I can mount it in my home directory with the command truecrypt --mount ...
1
vote
1answer
230 views

Set default permisson for newly folders and files in Linux

I'm using OpenSuSE and my computer has only 2 accounts: root and me.I have a directory /srv/www/htdocs/abc. I just want to set it up so that when new folders or files are created in this directory ...
0
votes
2answers
248 views

How can I access the log via a php script?

I have a statistics-file on my apache server on /var/www/vhosts/test/statistics/logs/access_log I tried using echo system('cat /var/www/vhosts/test/statistics/logs/access_log'); in a php ...
92
votes
6answers
5k views

How to chmod without /usr/bin/chmod?

Today I was told a tale by a Unix trainer, a tale where the root password got leaked to the students, and one of the fellas removed the execute permission from /usr/bin/chmod itself. How do you ...
-1
votes
0answers
56 views

file has blank permissions on linux server? [closed]

Why would several files be empty and have blank permissions? For example, ---------- 1 user user 0 Jun 21 00:50 site.com/html/wfc.php ---------- 1 user user 0 Jun 21 00:50 site.com/html/llre.php
0
votes
1answer
277 views

rsync “Permission denied” despite ownership

I just rsync'd a bunch of files, from a Windows box running cygwin sshd, to a CentOS 6.4 box. I ran rsync -e sshd... on CentOS to do this. Then I plugged in a USB drive on the CentOS box, formatted ...
0
votes
0answers
56 views

Permission in shmget Linux

I've been searching about 0666 permission in shmget(). I know that 0666 permission will grant read & write permission on the shared memory segment. But, how do I prove it have permission if I ...
4
votes
1answer
71 views

Root not affected by file permissions?

Why does this work as root? # touch test1 # chmod 000 ./test1 # echo "test" > ./test1 I take it root is not affected by file permissions?
2
votes
1answer
40 views

Solaris/OpenIndiana: Good documentation for permission-mechanism - roles, profiles and auths?

Are there any good documentation, HOWTOs or books (preferably free and online) describing the permission-mechanism for Solaris/OpenIndiana? How auths, profiles, roles, projects, groups and users ...
3
votes
1answer
83 views

Solaris/OpenIndiana: Password for roles?

I've been gently experimenting with roles in Solaris, and wonder a bit about setting a password for it. I want the role I've created to be used by several users, so setting password to the same as ...
1
vote
1answer
1k views

Can't start Tomcat on Ubuntu

I installed Tomcat on Ubuntu. Then I created a new user. Then did: liferay@web-svr:~/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/bin$ chmod +x *.sh Afterwards, I added JAVA_HOME and PATH in bash like ...
0
votes
0answers
29 views

Ubuntu directory permissions - Sticky bit - Prevent deletion of a file [duplicate]

I have a database called oss-pwds.kdb located in a folder /keepassx. This is a password database that I use with the KeePassX software. I want to allow all members of the "oss" group to open and ...