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)

0
votes
1answer
587 views

Setting permissions with FTP

I'm having some issues setting up permissions for FTP. Read another thread on here regarding it, but I wasn't sure if it really matched what I needed. Essentially, right now I've got the client's FTP ...
4
votes
5answers
423 views

Is making /var/log directory read only on debian linux safe?

I am installing a really small server which got a 512mb CF cars as HD. Not only I haven't plenty of space, but I would like to minimize the writes to disk. I would like to completely clear the ...
1
vote
0answers
7 views

fail2ban permission denied on script

I've just upgraded from RHEL 5 to 6.5 and setup fail2ban anew. I can't seem to get my custom action to work now, supposedly because of a permission issue. I wan't to know what am I doing wrong, and ...
1
vote
0answers
68 views

Save motion output videos in USB Drive [on hold]

I'm using a USB drive in my Raspberry to store my website. Now I want also save my videos made with motion. I wasn't able to save in a folder different from /tmp/motion so googling I found I had to ...
3
votes
3answers
132 views

Convert the permissions in `ls -l` output to octal [duplicate]

I want to convert the output of ls to octal permission bits. I think of the shortest and clearest way to implement that excerise: Let's say that we have as input: total 1 drwxr----x 1 user2 workers ...
1
vote
1answer
182 views

security concern around adding cron user to web application group

I have a permissions issue on my CentOS 5.6 machine with regards to the cron user. On my test/staging environment my cron user (picco-cron) is a member of one group - picco-cron, as below: ...
6
votes
1answer
3k views

Cannot delete a file - permission denied - why?

[db2inst1][testing ~/sqllib/db2dump] rm db2diag.log rm: cannot remove `db2diag.log': Permission denied [db2inst1][testing ~/sqllib/db2dump] id uid=1002(db2inst1) gid=107(db2iadm1) ...
2
votes
2answers
66 views

Why can users delete each others files in this case

I have two users : bob and sally, who resepctively own two files : bob100 and sally100: > ls -altrh /path/to/dir : -rw-r--r--. 1 bob test 0 Jan 7 12:59 bob100 -rw-r--r--. 1 sally test 0 ...
20
votes
2answers
3k views

How do I remove a file with no permissions?

A hacker has dropped a file in my tmp dir that is causing issues. Nothing malicious except creating GB's of error_log entries because their script is failing. However, the file they are using to ...
4
votes
3answers
104 views

Permission denied to change gid(group) of a file I own

It appears I still miss some things about the way permissions work. I am on a debian 7 system btw. just now I have this file of which I downloaded and it belongs to myuser:myuser, that is both user ...
6
votes
1answer
239 views

Why cannot a user change group ownership of his own files? [duplicate]

Why cannot a user change the group permissions of files which he owns. Let's suppose I have user martin: $ ls -lAd /home/martin/ drwx------ 8 martin martin 4096 Apr 20 01:06 /home/martin/ For some ...
3
votes
1answer
434 views

Using setfacl to create recursive permissions for Apache with rsync

I have a Dokuwiki installation locally, which I regularly sync to my server with rsync. I'm also going to give a friend of mine an ssh account, and host his public Dokuwiki installation. However, I'm ...
1
vote
0answers
317 views

Network Manager doesn't show Wireless connection

I've just installed on my Debian Sid with XFCE4 network manager, but I have a problem, no wireless connection are shown. What Should I do? I used to use wicd but I had problems to connect to free ...
13
votes
3answers
17k views

File permission issues with shared folders under Virtual Box (Ubuntu Guest, Windows Host)

I am using Ubuntu on Virtual Box and I have a folder which is shared between the host (Windows) and the VM (Ubuntu). When I open any file in the share folder in Ubuntu, I can not change it as its ...
-1
votes
1answer
61 views

What can I do if I got locked out by cphulk?

Is there any way in Linux to create another user with root rights? I got locked out by cphulk and I need some other way to log in. Notice many ways to fix this involve logging in to root or whm. ...
4
votes
2answers
37 views

modify file ownership for files inside tar archive

I am working as user, and I would like to create a tar archive, which when unpacked (by root) will extract its files with root ownership (otherwise root would have to change the ownership manually for ...
0
votes
0answers
12 views

Access rights problems with Openoffice [closed]

I have installed Open Office 4 in Fedora 16, logged as root. The problem is that now I can't execute it without being logged in as root. Every time I try to run it an error message appears: The ...
2
votes
0answers
62 views

fatal: bad ownership or modes for chroot directory component “/”

I used to be able to connect via ssh with the user I have created but now I keep getting: "Write Failed: Broken Pipe" and I can only connect as root In the ssh auth.log I get the following: ...
1
vote
1answer
21 views

Mount image user-readable with udisks2

Loop devices, i.e. for mounting raw disk images, can be managed without root privileges using udisks. For testing purposes, an image can be created and formatted like so: dd if=/dev/urandom ...
1
vote
2answers
68 views

UNIX ACL disadvantages [closed]

I have read a lot about how great UNIX ACLs are. For example, one good example can be viewed here. However, are there any disadvantages or configurations that cannot be expressed using ACL?
2
votes
2answers
48 views

mount changes directory permissions to admin:admin?

I'm mounting a samba share from one CentOS server to another using: mount -t cifs -o blarg,password //10.151.170.170/events /var/blarg/copy-to When I do this the permissions of /var/blarg/copy-to ...
2
votes
1answer
422 views

Linux Wordpress can't write wp-config file

I installed the latest version of Apache2 / PHP / MYSQL on my pc In the directory /src/www/htdocs I created a directory wordpress with all wordpress files. Then, when I tried to create the wp-config ...
4
votes
1answer
41 views

Sharing a local directory between local users with full permissions

How do you share a directory /home/shared between two users "eris" and "discordia" such that both can access the directory in their respective home directory, e.g. /home/eris/shared and ...
5
votes
3answers
210 views

How can I create a udev rule to mount a USB drive read only?

I'm trying to set a particular USB drive to always mount read only. If I plug it in, it is seen as sdb with a single partition, sdb1. Here are some relevant udevadm lines (not the entire output of ...
5
votes
1answer
74 views

Writing raw images safely to USB sticks

Trying lots of different linux, on all kinds of hardware I find my self typing commands like this quite often: sudo dd if=xubuntu-13.10-desktop-amd64.iso of=/dev/sdc bs=10240 Needless to say, ...
1
vote
2answers
89 views

How to edit /etc/hosts without sudo?

I have a machine that I can only access using SSH. I was messing with the hostnames, and now it says: ssh: unable to resolve hostname I know how to fix it in /etc/hosts. Problem is, I need sudo ...
1
vote
1answer
29 views

Mounting a device without read permissions

It is possible mount a flash drive without read permission?
5
votes
3answers
23k views

VSFTPD, 553 Could not create file. - permissions?

I've set up VSFTPD on Amazon EC2, with the Amazon Linux AMI. I created a user and can now succesfully connect via ftp. However, if I try to upload something I get the error message "553 Could not ...
1
vote
1answer
56 views

.Operation not permitted. For root user?

In order to find a workaround for a problem I had yesterday (see the question here) I come out with another experiment. After inserting a flash drive (vfat) and mounting its only partition I ...
0
votes
2answers
370 views

Linux Permissions vsftpd

I have mybb installed and running in /var/www/forums. I have two users part of the www group, logan and www-data. I have the recursive permissions of forums directory set to: chmod -R 755 forums ...
7
votes
1answer
291 views

USB drive permissions when automounting

On Debian there is the common problem, that you try to plug an ntfs formatted USB harddrive and then can't write to it as a regular user to it because the directory belongs to root. A little time ago ...
1
vote
1answer
293 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 ...
0
votes
2answers
33 views

Can I change devices permissions with chmod?

Before read: I don't want to use any udev rule. I need to change (programmatically) the permissions of some device. But first in order to underestand what I have to do (in code) I want to make the ...
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
52 views

Mounting NFS share from Linux client on Windows domain

I've got a client (Ubuntu 13.10) joined to a Windows domain through PBIS/Likewise, serving Samba shares and allowing domain users to login with domain credentials. Outside of the Windows domain, ...
3
votes
1answer
58 views

While trying to open /dev/mtd2 for read/write access: Permission denied

Looks like my MTD2,and MTD3 partitions are write protected. The OS is booting from SD card on a ARM Cortex A 9 processor. root@Xilinx-ZC702-2013_3:~# mount /dev/mmcblk0p1 /mnt/ ...
-2
votes
2answers
68 views

Misuse of go-r *

I am working on a test server. Was logged in as root and issued cd / chmod go-r * I certainly revoked the write permissions for the users that I had created. Did I revoke the permissions (r/w/x) ...
-2
votes
0answers
13 views

Changed permissions on /usr/lib [duplicate]

I changed permission on /usr/lib by doing a recursive call to chown by using sudo. And after that, the system has just been weird. I don't have any network/audio interfaces working; pretty much the ...
7
votes
1answer
5k views

Unable to delete file, even when running as root

I am in the process of migrating a machine from RHEL 4 to 5. Rather than actually do an upgrade we have created a new VM (both machines are in a cloud) and I am in the process of copying across data ...
2
votes
0answers
26 views

User permissions inside and outside of LXC containers?

I'm running some services inside of Docker LXC containers on my server and I'm beginning to actually do serious things with them. One thing I'm not clear on is how user permissions work inside and ...
9
votes
4answers
1k views

Sudoers for one day per week?

I have been volunteered by my boss to be the sysadmin for our production redhat server. He asked me to tighten the security to avoid mishaps like rm -f * that occured not long ago. Right now, we ...
3
votes
2answers
546 views

List all chflags file flags?

Is there a way to see a file's flags, such as hidden, schg, etc? I've got an rwxrwxrwx file that I can't edit, and I think a flag might be responsible.
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
1answer
448 views

FTP error 553could not create file in RHEL

We need to tranfer a file from local machine to remote machine. Remote machines settings is as below: [540607@hsldevoradb ~]$ su - Saphr002 Password: [Saphr002@hsldevoradb ~]$ pwd /odi/CSV/in ...
2
votes
1answer
2k views

How can ubuntu/truecrypt be configured so users can mount volumes if-and-only-if they have proper permissions on the mount-point?

If I add the line: ALL= /usr/bin/truecrypt to the sudoers file this lets all users mount volumes at arbitrary mount-points. The problem is a user could create a truecrypt volume and then mount it at ...
4
votes
1answer
186 views

chmod does not change permissions of certain directories

System file: ext4 I changed the owner of files to apache: with the command: chown -R apache: wp.localhost Then, I could not change the permissions of directories in wp.localhost nor the ...
0
votes
0answers
13 views

Cyrus create mail box gives error permissions denied

On freebsd91 64 bit i installed exim as mta and cyrus as imap server. I use saslpasswd2 root cyradmin -user root localhost localhost> cm INBOX.Sent It gives permissions denied error. In my ...
2
votes
2answers
352 views

SMB Mount To Windows Server Appears to Lock up. Any Ideas?

We are running CentOS 6.3 with all the latest updates. (Attempt to resolve this issue) The Server I am trying to connect to is a Windows Server 2008 R2 box. Though this applies to our old SBS'03 Box ...
0
votes
1answer
424 views

Security - Giving Apache write access to /var/www/html

I am running Worpdress on an CentOS Webserver. Now, to enable wordpress to be able to upload/write files to the default webserver directory /var/www/html I had to do the following change on the ...
3
votes
1answer
150 views

What is the relationship between root and kernel? [closed]

Based on part of the first answer of this questions: read from a file (the kernel must check that the permissions allow you to read from said file, and then the kernel carries out the actual ...