Questions tagged [permissions]

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.

Filter by
Sorted by
Tagged with
-1
votes
1answer
420 views

How to Interactively ask a user to change Permissions for a Specified File

I need to create a script that will allow a specified file to have its permissions changed interactively by asking the user if they would like to enable Read, Write and/or Execute one by one for each ...
-1
votes
1answer
29 views

Trying To Get Data From Server HDD

I had two CentOS 6.5 servers that I was running using the Plesk control panel. I have moved and decided not to use them no more but just buy my hosting. My new ISP blocks port 80 and the cost is ...
-1
votes
1answer
194 views

Not able to switch to root user via command line [duplicate]

On my centos 7 vps server, to secure my server I disabled root login via ssh. I created a new user called erdem and login with that user via ssh. After I login via ssh with user erdem, I would like to ...
-1
votes
1answer
418 views

How to restore file permissions, to their default. Following chmod -R 777 / [duplicate]

Basically i entered a wrong command on one of my most important cpanel server chmod -R 777 / And all the folders and files are changed to 777 permission and all the services like phpmyadmin and mail ...
-2
votes
2answers
2k 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
2answers
1k views

Why does Linux not allow deletion of read only directory? [closed]

I am new to Linux. When I make a file as read only I am still able to delete that file. I read on the net that deleting a file depends upon the permissions of the folder in which it lies. To make ...
-2
votes
2answers
126 views

Loop through file tree and change permissions selectively

I have a main _web folder wich is holding this structure of folders and files(see below). I am trying to make a bash script which would loop through all the folders and change permissions for files to ...
-2
votes
2answers
70 views

I don't have writing access to a subdirectory in /

I have a server running under Debian wheezy. I want to create a directory in /. I can't without running sudo mkdir myDirectory. Once in /myDirectory, I can't write anything or create a repertory. I ...
-2
votes
3answers
8k views

Setting an NTFS file to be read only from Linux

I am trying to make a folder and its file read only so I do not accidentally delete it. I have run chmod -R 444 myfolder/ but when I then right click on the folderand go Properties>Permissions, it ...
-2
votes
1answer
733 views

Move folder from root of Hard Disk to Current Directory [closed]

I'm trying to figure out how to move a folder that sits in the root of my disk (what do you call that, home?) to a subdirectory. I am not cd'd to the root (again not sure of the terminology). When I ...
-2
votes
1answer
59 views

How can I have a user who can write files but cannot delete them? [closed]

I want to have a user who can write files; but I don't want this user to be able to delete them.
-2
votes
1answer
53 views

Cant start nor stop httpd [closed]

I am trying to start httpd, but it wouldn't allow me. I tried to find the file httpd.pid but it doesnt show me although it exists. How can I solve this?
-2
votes
1answer
35 views

Setting directory permission to 0570 [closed]

There was an answer to "Execute vs Read bit. How do directory permissions in Linux work?" regarding setting a directory permission to 5 (-R-X) value. It was said it "5: Allow reading / writing, but ...
-2
votes
1answer
82 views

Is it ever meaningful that the owner of an executable file doesn't have the execution permission?

Assume an executable file has its set-user-id bit on. When a process executes the executable file, it changes its effective user ID to the owner user ID of the executable file, after the kernel ...
-2
votes
1answer
49 views

directory access permission seemingly inconsistent

I want to grant new users access to a directory owned by root. "ls -lt" returns drw-rw-rw- 74 root root 4096 Mar 21 20:51 dirname My old user can cd into it. However, when I ...
-2
votes
1answer
3k views

Can't Execute Makefile, Even As Root!

I'm trying to compile a c program, but when I try to execute the makefile, I get "Permission denied". This is what I did : root@mycpu:/usr/bin# MakeFile -bash: /usr/bin/MakeFile: Permission denied ...
-2
votes
1answer
22 views

Sudoers permissions to new user that only allow “useradd and usermod”

I want to create a new user and I want this user to be allowed to only run "useradd" and "usermod" Will I need to configure the sudoers file? Not sure how to go about this.
-2
votes
1answer
43 views

chown failed: Operation not permitted (permission related)

It is my first day at Ubuntu, so I beg your pardon if I am asking a very basic question. I have installed Ubuntu in a VirtualBox. I am trying to run a basic command and follow instructions from here....
-2
votes
1answer
139 views

Can't grant myself permissions to use the rm command

I have a user account on my machine: $ (whoami) foo_user I've updated by /etc/sudoers file to grant myself permissions to use the rm command: User_Alias OPERATORS = foo_user Cmnd_Alias RM ...
-2
votes
1answer
250 views

Linux giving permission to an user to the log file

Using SFTP I want to copy the log directory from var. By default my user have permission denied without sudo. Root is blocked for login, besides I don't want to use it in sftp. I want to give my ...
-2
votes
1answer
63 views

Delete a corrupt file in debain

How to delete this file? I installed "Network Configuration Management" from ManageEngine: Network Configuration Management Tried to run that .exe ("MSIHandler.exe") file (my folly) got this ...
-2
votes
1answer
104 views

How to deny all access to /dev/sda? [closed]

I would like even applications not to be able to access /dev/sda . If possible, I would even like to disallow root applications from accessing it, but that is not as important.
-2
votes
1answer
57 views

I can copy file but can not move it from my Mac Terminal [closed]

I can copy file but can not move it on my Mac Terminal. I want to execute following command: mv /apps/gfss/ipt/files/R2R/Japan_WHT/21940000/DATA.xlsx /apps/gfss/ipt/files/R2R/Japan_WHT/21940000/...
-2
votes
2answers
536 views

If a block device has a permission of brwx______, how secure is it?

I have trouble finding information on what permissions for block devices really mean. For block devices, what does read permission mean? Does it mean I can't do stuff like hexdump? What about write ...
-2
votes
1answer
44 views

User cannot see a directory in /var/www, thought the directory is there

I'd like to create a repository folder that can be accessed by cpanel user. Let say I create a directory in /var/www/webassets, and set the access to 777. I can see the folder using ll command as ...
-2
votes
1answer
316 views

How to reset entire system permissions back to default in Linux?

I found I've a kind of messed up most part of my system permissions. Some places that only owner should have access is now exposed to world. How can I reset the folder permissions to default like i ...
-2
votes
1answer
215 views

I get a “permission denied” when I try to access my ssd's

I am the single owner and user of my computer. I am restricted from accessing two of my SSDs. How do i change it? I don't know what to look at so I can't show you anything. I installed the latest ...
-2
votes
1answer
8k views

mount changes directory permissions even with umask=777

My /ramfs directory ceases to become writable to non-root users after it is mounted with a ramfs partition sudo su mkdir /ramfs chmod 777 /ramfs mount -t ramfs -o size=20m,umask=777 ramfs /ramfs ls -...
-2
votes
2answers
285 views

How to give write rights of a file to a group [closed]

I want to make a folder writable by any user in a group So I first create a new group like this: sudo groupadd newGroup then I add user1 and user2 in this group like: sudo usermod -a -G newGroup ...
-3
votes
1answer
94 views

Terminal can’t use 'mv', because 'permission denied' (Linux Mint/Debian)

I want to move a file using mv; this is the command: mv /etc/samba/smb.conf /etc/samba/smb.conf.bak But it returns: mv: cannot move "/etc/samba/smb.conf" to "/etc/samba/smb.conf.bak": permission ...
-3
votes
3answers
2k views

Grant full root permissions to an user

In /etc/sudoers i added: %myuser ALL=(ALL) NOPASSWD:ALL Now if i type sudo apt update i don' t need to type the password. But i want full root permissions: namely, i want to use only apt update. The ...
-3
votes
1answer
39 views

Permission denied as root [closed]

new clean Debian 10 install. Software manager does not work. Have to add where to look for updates. update does not work because the wrong repository was entered during installation. Right-click does ...
-3
votes
1answer
93 views

How to setup samba conf file for read only group and read/write for a certain user in a share

I need to create a share in Linux (Fedora) and one group must have only read rights and one certain user can read/write. The rest has no access. this is part of my configuration file. How can I set ...
-3
votes
1answer
928 views

How to disable running Firefox as root without password Linux? [closed]

I'm new to using Linux. How to disable running Firefox as root without password in Linux? I want to take permission back. I am probably clicking something, and now I can't take it back to normal, so ...
-3
votes
1answer
42 views

List just the filenames (not directory structure) of files with a certain permission only in sub directories

I want to know how to list only the name of the sub directory that has a certain permission. The command I got so far is this: find */* -maxdepth 2 -perm 770 but this just gives me this: file1/...
-3
votes
1answer
340 views

Can some one discuss these interview Question regarding permission? [closed]

Effective user id can be set using following permission? 4744 Effective group id can be set using following permission? 2666 Hi, guys reading some interview question and I got some interview stuff ...
-3
votes
1answer
70 views

Arrange for files created in a directory to belong to the directory's group

How do I set permissions so that whoever creates any files or directories in /directory, the group owner should automatically be the same group owner of /directory? This is on RHEL.
-3
votes
1answer
39 views

Group permissions

I would like to learn how to do next stuff: 1) make for example /bin folder and everything inside visible only to root account 2) make for example /usr/etc/something have permissions like: read, ...
-4
votes
1answer
553 views

Difference between simple cat and redirecting the to a variable

I have written the following script #!/bin/bash echo "Power Details" fall='/sys/class/power_supply/BAT1' full=cat $fall/energy_full echo 'printing here' echo $full It is showing the following error: ...
-4
votes
1answer
380 views

permanently change /tmp stickbit to -t

I want to change the stickbit permision of /tmp directory to -t. The problem is every time I reboot the permissions reset to 1777. How can I permanently change the /tmp directory to 0777 ? I have ...
-4
votes
2answers
180 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 ...
-4
votes
1answer
521 views

Break write permission for non root user?

Can non root user edit files he/she doesn't have access to or create new a file in a directory he/she doesn't own? Is there a way to do that? P.S : I know if root user or file owner gives him write ...
-4
votes
1answer
254 views

Read permission denied even when using sudo and all permissions are granted [closed]

I have this virus that came from an npm package and I want to read the code. My problem is that I cannot read the contents of the file. Trying to make it readable, I took the drastic step of allowing ...
-4
votes
2answers
54 views

Using octal method,how do I type the exact command I would use to make test.txt have the following permissions dr-xr-x— [duplicate]

Using octal method,type the exact command you would use to make test.txt have the following permissions dr-xr-x---
-5
votes
1answer
5k views

Problem with sudoers file. Syntax error at line 82, but cannot find exactly what? [closed]

I ssh'ed into my new Linux machine (no physical access) and I have root credentials. However, I cannot run sudo commands because of some error in the sudoers file made by someone else who logged in as ...
-5
votes
1answer
46 views

SEt file permission in linux from home

I am in my home directory. I want to set file permission for my file named "Secret" so that no others can read or write this file. I want to do this by the symbolic method.
-6
votes
2answers
314 views

Permission denied when executing testng.xml via ssh

See attached screenshot. Please do let me know how to fix this issue ASAP.
-10
votes
1answer
576 views

What does the -R switch mean when used with chmod or chown commands?

I'm just trying to get up to speed with permissions in Linux. I've come across an example which uses -R when changing permissions and ownership of a directory. What does the -R mean?