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
-2
votes
2answers
71 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
3k 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 ...
-2
votes
1answer
1k 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
2answers
879 views

How to restrict anyone (Root user also) to modify file in Linux?

I am developing one security base software for LINUX platform using C and CPP. I want to restrict all users even ROOT user also to modify the file. i.e No one can modify the file. Modifying means No ...
-2
votes
1answer
61 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
57 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
48 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
93 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
90 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
56 views

Permission Error when accessing Python file

I am receiving this error and am unable to address it. I don't understand how I don't have permission to these files in the python3.6 directory. File "/usr/local/lib/python3.6/site-packages/...
-2
votes
1answer
115 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
684 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
529 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
2k 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
244 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
62 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
45 views

I created a new user but I can't perform any actions on new user

So I created a user named test and then I tried to make a directory in it but the permission was denied although the user test has all permissions.
-2
votes
1answer
256 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
2k 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
118 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
292 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
12k 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
1answer
273 views

Unable to execute certain programs even as root [duplicate]

I am unable to execute certain programs in various folders even as root. The programs have the correct permissions on them. For example see below [root@ODHI01VMA02 bin]# ls -la java* -rwxr-xr-x 1 ...
-2
votes
2answers
601 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
2k 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
1answer
681 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
442 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
1k 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
48 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
395 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
73 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
146 views

mkdir permissions needed for script called by systemctl start service

How can I give mkdir permissions to a script that is called by sudo systemctl start <service-name> ?? Here is the error being thrown in the results of sudo journalctl -u jekyll -f when I type ...
-3
votes
1answer
44 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
1k 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
525 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
364 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
568 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
56 views

File Permissions Script

I'm new to scripting and need assistance writing a script that will go in the /var/log directory, and change all directories's permissions to 777 and all the files permissions to 666 in Linux. Any ...
-4
votes
1answer
456 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
1answer
6k views

Permission Denied in Kali Linux

I tried to upgrade my tools but it wont let me do it, and it drop me this E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend ...
-4
votes
2answers
74 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
6k 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
54 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
403 views

Permission denied when executing testng.xml via ssh

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

I am having problem will installing development [closed]

I am nod able to install mono development even after i gave apt get update. My system is asking for Mono depends on =6.10.0.104-0-xamarin16+debian10b1 Its also asking Hit https://download.mono-...
-10
votes
1answer
742 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?

1
72 73 74 75
76