1
vote
2answers
50 views

Unable to get rid of root user and privileges

I am told that the most basic security to set up in Linux is to change the superuser name from root to something obscure so I run these steps to add new user $ /usr/sbin/adduser new_username $ ...
2
votes
1answer
35 views

Changing file permissions on an HFS+ filesystem

I ran the command fdisk -l to find out what my external drive is formatted to, I found out it's uses GPT partitions and the filesystem is HFS+. When I try and create a new folder on the external ...
2
votes
1answer
42 views

What to do when you removed execute permission from some system binaries or libraries?

It seems I removed executability from system binaries, resulting in loads of Permission denied. Do I have to force reboot into host's rescue mode or is there something else I can do while I'm still ...
1
vote
1answer
40 views

How can I tell why I have permissions to read a file? [closed]

Here's what I just noticed on my CentOS SSH account: stat output $ stat /dev/kvm File: `/dev/kvm' Size: 0 Blocks: 0 IO Block: 4096 character special file Device: ...
3
votes
1answer
212 views

What permissions do I need to write to a card reader?

I have a card reader attached on /dev/sdb. What I do is giving all permissions to owner, group and the rest of the world, using: sudo chmod 777 /dev/sdb Can I just use another combination, ...
4
votes
2answers
62 views

777'd some files. How do I repair SSH?

So I'm messing around on a test server and accidentally ran the following (which resulting in SSH breaking): # chmod -R 777 /var Because it's a test server, I'd rather not re-install right now, I ...
1
vote
0answers
20 views

Traffic Control user permission

My users need to emulate packet loss on RTP video streams to achieve visual effects. We are in a artistic environment and don't worry about security. The application works only as super user. I ...
1
vote
0answers
56 views

checking sendmail status as NON root user

I am in the process of converting to CentOS 6.5 from 5.5 and need a way to check if sendmail is on or not. For reasons I don't want to go through, I need to be able to check if sendmail is ON as a ...
2
votes
1answer
74 views

How to set umask so that directories to be `r-x` and files to be `---`

I want to set the default permissions for newly created directories to have r-x for others and those of newly created files (non-directory files) to have ---. If I set the umask to 2, directory ...
1
vote
2answers
75 views

In Linux, why do you need to be root to write to /proc/sysrq-trigger?

WARNING: THE NEXT KEY COMBINATION WILL CRASH YOUR COMPUTER Ok, I get that this is an administrative tool and all, but I realized that any user can do ALT + SysRq + C. This link explains what I'm ...
0
votes
3answers
169 views

Script to recursively check permissions and owners of a directory and write shell script to recreate them

I'm trying to write a shell script to preserve and rewrite all permissions/groups in a large directory with several subdirectories in the event they get changed or are not properly created or if ...
1
vote
2answers
48 views

Command to know privileges of a user group

If I run cat /etc/group command or groups username I am able to know the list of groups as group of a particular user. Is there any command through which I could know which type of privileges a ...
0
votes
2answers
62 views

Apache folder permission error

I have a folder name public that I set up Apache to serve files out of, for some reason I was getting a 403 with the error message: You don't have permission to access / on this server. My ...
1
vote
0answers
44 views

Disable commands for users [duplicate]

I have users that login automatically via ssh to a script I defined instead of a shell. The script basically launches a program which has a shell-escape in it which would allow the user to execute ...
2
votes
2answers
49 views

Why does the root user have control over mysql directories but not show as a member of the mysql group?

Sorry if this is a duplicate. It seems somewhat similar to the question here but I think what I'm asking is a little different. I've got a CentOS 5.x box running with mysql on it. The root linux ...
2
votes
1answer
189 views

setfacl default --x on directories and r— on files for user

Having the following directory structure [sr@server directory]$ tree . ├── folder1 │   ├── fileA │   └── fileB └── folder2 └── fileC 2 directories, 3 files I want to set a default facl on ...
2
votes
2answers
471 views

Allow NonRoot User to Mount a Particular NTFS External Hard Drive

I have a 4TB external hard drive connected to an Linux server. The fstab permissions on this drive are set so that only one particular non-root user has access to it: ...
-1
votes
2answers
85 views

ls -ld list files inside a folder which is having only execute permission

In Linux, I gave only execute permission to a directory named test. after switching to the directory test, when I run ls -ld it was showing some hidden files. Please explain this.
0
votes
2answers
30 views

How to create a directory which will have access to the user who is installing a package?

I am packaging one of my projects on Debian. The project expects a directory to be created at XDG_DATA_HOME or ~/.local/share/ where the data files will be kept. Now I am trying to create and feed the ...
4
votes
1answer
94 views

How to set a directory's permissions for group read/execute access

I am running Arch and have just install XAMPP. I have change changed my document root to /srv which is a separate EXT4 partition. I have set the Apache HTTP server to use a group called "http". I have ...
2
votes
1answer
62 views

chmod 600 fails silently

Here is what happens: $ chmod 600 foobar.txt $ ls -l total 1 -rwx------ 0 sampablokuper sampablokuper 13 Feb 19 21:00 foobar.txt Why is the last line not reading as follows? -rw------- 0 ...
3
votes
1answer
538 views

File inheriting permission of directory it is copied in?

I have files created into my home directory with only user read permission (r-- --- ---). I want to copy this file to another directory /etc/test/ which has the folder permission of 744 (rwx r-- r--). ...
2
votes
2answers
33 views

Specialized access control for directories in RedHat

I have a requirement where I want to change permissions for a directory so that the directory owner (user/group) would be able to create files inside the directory and modify them, but won't be able ...
0
votes
0answers
27 views

Correct permissions for a .desktop file

Some file managers do not allow the execution of a .desktop file if it doesn't have the executable bit set, however in most cases I see such files as just 0644, without the executable bit. When ...
3
votes
2answers
2k views

“echo 3 > /proc/sys/vm/drop_caches” - Permission denied as root

I am currently having some issues with the cache. It is a little too much right now so I wanted to clear it. I googled and found this little command: sync && echo 3 > ...
0
votes
1answer
415 views

root permission denied on /proc/1/exe

I just performed a fresh ubuntu install and i am seeing the following in lsof: userA@az1:~$ lsof COMMAND PID TID USER FD TYPE DEVICE SIZE/OFF NODE NAME init 1 ...
0
votes
3answers
43 views

Is it possible to create a file with the privileges of other users?

I am a user of the root account on the server named A. And I also own the accounts of user1 and user2. When I create a file or directory in the account of user1, I want the owner of the file to be ...
2
votes
2answers
69 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 ...
2
votes
1answer
128 views

Allow file manipulation but block folder/subfolder manipulation?

I have an Ubuntu file server (samba) sharing a folder structure with a Windows 7 computer classroom. All users use the same user/pass to access the folders and have read/write permissions. I would ...
1
vote
1answer
646 views

Linux empty buffer cache command permission denied

I'm using the following commands to flush cache: # sync; echo 3 > /proc/sys/vm/drop_caches # sync; echo 2 > /proc/sys/vm/drop_caches # sync; echo 1 > /proc/sys/vm/drop_caches When I use ...
0
votes
1answer
96 views

SFTP Modification time Permission denied when touching/updating files

The file is apache:apache 660 and username is jdoe and he belongs to groups jdoe and apache. He SFTPs into the server with WinSCP but when he goes to perform an edit which includes a set modtime ...
2
votes
0answers
59 views

NFS mount edits on local NFS-exported filesystem change permissions on the remote NFS mount

I believe there is a noperm or something to that effect option in NFS, but how do I make sure that if server A is exporting /opt/nfs and it is mounted as an NFS mount on server b /export/serverA that ...
1
vote
2answers
151 views

How to modify the permission of jar file exactly same as other machine jar file? [duplicate]

I have two machines, In my machineA I have a jar file with these permissions - -rwxr-xr-x 1 cronus app 16758150 2013-03-19 13:35 exhibitor-1.5.1-jar-with-dependencies.jar In my another machineB, I ...
0
votes
3answers
245 views

noexec on /tmp and /var/tmp directory

Our client servers are running old version of jboss (Jboss 4.0) which has lots of known vulnerabilities. Result is that the server is hacked and we are seeing some unknown executables running from ...
0
votes
1answer
89 views

How to give permissions to other user after logging as root in Linux?

I am a Linux newbie and I have a very basic question. I have one machine which is machineA and I have a root access to that machine. Now I need to create these below two directories and give ...
2
votes
3answers
161 views

How do I change owner/permissions of auto mount on an embedded linaro based linux

I have an ARM based embedded system that when it auto mounts a USB drive it mounts it: drwx------ 6 linaro linaro 2048 Jan 1 1970 PENDRIVE I need to change the permissions and possibly thew owner ...
7
votes
1answer
441 views

What does a dot after the file permission bits mean?

I performed an ls -la on directory on my CentOS 6.4 server here and the permissions for a given file came out as: -rwxr-xr-x. I understand what -rwxr-xr-x means, what I don't understand is the . ...
2
votes
1answer
88 views

Process overwrite access restriction

I want to run a program so that it can only create new files and not overwrite existing ones. Does something like this exist? $ fsaccess --can read,write --not overwrite --command bash -c 'echo ...
0
votes
0answers
440 views

FreeRadius/Samba/Winbind “reading winbind reply failed” error

I'm trying to set up FreeRadius (on debian 7, samba 3.6.6) to authenticate with AD, and I've successfully joined the the radius machine to the domain (server 08 r2). I can successfully run wbinfo ...
1
vote
1answer
161 views

what are the different ways to set file permissions etc on gnu/linux

On Unix a long time back I learned about chmod to set permissions and to allow programs to gain privileges. I have recently discovered extra commands on GNU/Linux: chattr, setfacl, setcap. Are there ...
1
vote
1answer
111 views

How to change permissions from root user to all users?

I created a folder on the command line as the root user. Now I want to edit it and its contents in GUI mode. How do I change the permissions on it to allow me to do this?
2
votes
1answer
95 views

How 'passwd' gains ROOT user permissions?

How does Linux knows that it has to give euid 0 (uid of root) to only certain process like passwd, setuid, etc. If a process can gain root user's permissions, will it not lead to security breach in ...
3
votes
1answer
112 views

setgid binary doesn't have permission, mount's right, I'm missing something, but what, please?

I'm sorry, I know this has to be something simple but I've checked the manpages, the mount, the permissions ... (edit: combined history into one sequence as requested. Starting to seem a not-simple ...
2
votes
1answer
194 views

Permission issues when doing system backup using rsync [duplicate]

I'm trying to backup my linux system (arch linux on a laptop) to a remote computer on the same network using ssh (or NFS). I use rsync extensively to backup my /home directory to the remote computer ...
0
votes
1answer
2k views

How do I set permissions recursively on a dir (with ACL enabled)?

For example, I want to give my colleagues write access to certain directory. Let's assume that subdirectories in it had access rights 775, files 664, and also there were some executable files in the ...
0
votes
1answer
872 views

FTP error 553could not create file in RHEL

We need to transfer 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 ...
5
votes
1answer
61 views

Setting group permission on directory

I'm looking for the best way to give a group permission to view any files in /var/log, but only using cat or tail. My best guess right now is that I need to use ACL's: setfacl -mR default:g:group:4 ...
1
vote
3answers
55 views

How can I make a switch accessible via the internet, that allows users to turn on or off a python script?

I have a python script running on a home laptop that runs Ubuntu 13.10. I want to give 2 or 3 people the ability to start or kill that script, but no other privileges. I don't want to give them access ...
0
votes
1answer
459 views

What does the “flags” field in getfacl mean?

I'm trying to set permissions on a server between users using ACLs. When I'm checking their status on one of directories using getfacl dir10, it shows: root@svn:/srv/resources/somedir# getfacl dir10 ...
2
votes
1answer
836 views

Zabbix-agent: cannot stat 'filename.log': [13] Permission denied

I have installed Zabbix-server and zabbix-agent and trying to add trigger to check log file. But in /var/log/zabbix/zabbix_agentd.log I got the same error every time: 10832:20131008:125634.180 ...