Questions tagged [restricted-access]

This tag discusses protection of data using system configuration or file-based permissions.

Filter by
Sorted by
Tagged with
2 votes
1 answer
45 views

Prevent specific users from turning off network connections

There is a customised Ubuntu 22.04 system with 4 users: user_a, user_b, user_c, user_d I want to prevent 2 users (user_c, user_d) from changing Ubuntu settings. I've already locked down the terminal ...
1 vote
0 answers
354 views

Ubuntu 22.04 XRDP Allow multiple sessions and restrict some users

I have installed xrdp on Ubuntu 22.04 Server where I also installed ubuntu-desktop for development and testing. When one user is logged in through remote desktop, others cannot login. How to allow ...
  • 141
0 votes
0 answers
24 views

Creating a Restricted User Account

I'm currently trying to build an ubuntu 20.04 image where the user account is pretty locked down. I dont want the user to be able to change any settings or use terminal or anything else. They are only ...
  • 41
0 votes
0 answers
12 views

Snap applications can't open file dialog in Ubuntu 22.04.1 LTS [duplicate]

I am using Ubuntu 22.04.1 LTS. Recently, when I try to open files from any application such as inkscape or firefox, it appears the application is unable to access the file dialog. For example, when I ...
  • 101
0 votes
1 answer
23 views

Preventing a specific application from accessing a folder, in user space

I have an app which recursively scans through huge directories, which is even slower because those are on NFS. It seems that I cannot configure the app in a way to stop this. However, I still want to ...
  • 2,287
1 vote
1 answer
231 views

Accessing Jupyter from a user other than root user

When I'm logged in as root user to a remote Linux server I'm able to run the command: jupyter-notebook --no-browser --port=8909 --allow-root When I run which jupyter I get: /usr/local/anaconda3/bin/...
0 votes
0 answers
41 views

OpenLDAP Access handling

I have installed OpenLDAP on Ubuntu Server 20.04. It works fine so far. Now I want to restrict access to the server, as by now anyone can read all entries e.g. in Thunderbird. Therefore I created a ...
1 vote
0 answers
326 views

Access denied when trying to install Linux Docker container

Following this tutorial: https://ubuntu.com/tutorials/windows-ubuntu-hyperv-containers#1-overview In step 6 I try to run: .\dockerd.exe -D --data-root C:\lcow Then I get: failed to load listeners: ...
3 votes
2 answers
3k views

Firefox - VideoDownloader App + Companion application not working (Ubuntu 21.10)

To install the browser firefox on my system I used sudo snap install firefox. Afterwards, I installed the extension VideoDownloader, which was working fine. But by using this extension the first time ...
0 votes
1 answer
46 views

Is it possible to add this file to my desktop? [duplicate]

I got Ubuntu 20.04.3 recently and I cant add this file to my desktop. I don't know where to start but this is my only discord.desktop on my computer and I need instructions to remove the: arrow, lock, ...
0 votes
1 answer
30 views

How can i regain access to change permissions on my files on ubuntu

chmod -rwx balfyp chmod: changing permissions of 'balfyp': Operation not permitted i changed the mount options on my wsl to fmask=111 suddenly i have zero access to my entire files on my /mnt/c ...
2 votes
0 answers
86 views

Why can't my Snap-installed apps access external drives?

I've recently set up a new server using Ubuntu 20.04 LTS. When I try to access images on an external drive using the snap-installed Gimp I get errors that the files don't exist (even if I run Gimp ...
0 votes
0 answers
338 views

Access removable media with snaps

My second SSD is mounted at "/home/maxime/Data/" to facilitate remote access. Also, since there is not a lot a space in my system SSD, I moved the /tmp folder to "/home/maxime/Data/.tmp&...
1 vote
0 answers
2k views

pulseaudio Denied access to client with invalid authentication data

keep getting repeating pulseaudio message in syslog! Mar 2 18:43:14 itc2 pulseaudio.pulseaudio[27388]: W: [pulseaudio] protocol-native.c: Denied access to client with invalid authentication data. Mar ...
0 votes
1 answer
72 views

Permit an application to access other drives

What would be the command to allow a specific application to view other drives, like Clementine ? I can't add content to my library from other drives. Ubuntu 20.10 groovy (x86-64) With Cinnamon 4.6.7 ...
  • 336
0 votes
1 answer
110 views

CHMOD and how the permissions thing works? [closed]

So I got few questions about CHMOD and permissions in general. I know there are 3 groups: user(the creator of the file, the admin user (?) ) groups others My questions are: Can I create more than 1 ...
  • 103
1 vote
1 answer
181 views

Chroot SFTP user in Ubuntu

Good morning, I have a basic Ubuntu EC2 webserver with Apache, and several different websites on it. I log in to it via SSH with the access key provided by AWS to do basic stuff (I am a developer, not ...
  • 11
1 vote
1 answer
93 views

Locking certain applications

In my family, I'm the computer guy (17yo btw). My brother got a laptop for christmas, and now, not even a month later, he managed to already mess it up (will freeze after a few mins of use and ...
0 votes
1 answer
2k views

Could not scan some of the folders contained in “/” (Permission denied)

Info I just installed Ubuntu 20.04 and created different partitions since I am using 2 different disks (1 SSD and 1 HDD). When I first booted Ubuntu there were no issues, update as normal when ...
4 votes
4 answers
2k views

How to get the snap-based chromium to access a separately mounted filesystem?

I recently upgraded to Ubuntu 20.04 from the 18.04 version. Since then, the snap-based chromium browser that comes with 20.04 is unable to access any items in the /opt partition which I have ...
  • 353
0 votes
2 answers
56 views

Iptables url filltering

i have a web app and i want to filter the access like this: block incoming connection to http://my-ip:8080/ access incoming/outgoing to http://my-ip:8080/the-rest-of-the-address actually i want to ...
0 votes
0 answers
256 views

Point an SFTP user to its working directory without listing other user's directory

I am working on configuring an SFTP server on Ubuntu Server 18.04. I want to create SFTP accounts that point directly to their working directories without listing others. For example if the real ...
3 votes
1 answer
247 views

How to make snaps see the real /tmp?

I'm again and again getting annoyed by the fact that snaps don't see the "real" /tmp. One example why this is bad is that I'm unable to use "Open with -> Xournalpp" with PDFs from email attachments ...
  • 181
1 vote
0 answers
155 views

How to do SFTP access for only one folder/user?

I'm using ubuntu 18. I currently have a folder located in: /home/CS/scriptfiles/Maps/ And I want to create a new SFTP user, on port 22, which could ONLY browse the location: /home/CS/scriptfiles/...
8 votes
1 answer
7k views

How can Snap permissions be viewed and modified?

One of the promoted advantages of Snap packages is the sandboxing-feature, where a Snap program may not be able to access as much system information as a package from the repository. Now, I have ...
3 votes
4 answers
12k views

Unable to access external hard drive - "Not authorized to perform operation" - Ubuntu 18.04

Recently I connected my external HDD on my Ubuntu 18.04, but it is showing the error Unable to Access drive-Not authorized to perform operation. However, my HDD is working fine on windows. How can ...
1 vote
1 answer
2k views

Kiosk mode Ubuntu

We have a few Windows 10 kiosk computers in the hallway. I want to replace them with an Ubuntu image. A few things I've managed so far: Users can log in automatically. The browser starts at login. ...
33 votes
2 answers
9k views

Is there any way to stop a user from creating executables and running them?

Ransomware attacks could use zero-day exploits, but often an attacker will just fool a gullible user into running an executable by downloading and clicking. Suppose we have a naive user and want to ...
  • 741
1 vote
1 answer
545 views

Failed to build byobu from source (no root permissions)

I don't have root access. Have tried with autoreconf -ivf but nothing works Steps I am trying to follow: wget https://launchpad.net/byobu/trunk/5.17/+download/byobu_5.17.orig.tar.gz tar -zxvf ...
  • 11
3 votes
2 answers
17k views

How to grant non-root user access only to /var/log directory

I have newly created non-root(normal) user and want to grant access only to /var/log directory so that the user can view and monitor the logs. The user should not be able to cd/ls or access the /etc ...
  • 31
0 votes
1 answer
2k views

Lock user to single directory

I don't want to lock ssh users, I want to lock users in general. If a process is running as a user e.g. su -c "ls" user1 I want user1 to only ever see the folder /path/to/folder and it's subfolders/...
  • 131
0 votes
1 answer
391 views

Accessing my Windows system folder from Ubuntu 18.04

I've been banging my head against the wall for the last 2 days. Ubuntu won't let me even read-only my Windows system folder. Secure boot is disabled, efi dual boot works, fastboot is disabled in both ...
  • 1
1 vote
2 answers
3k views

How do I remove the requirement of being root for modifying a certain directory? [duplicate]

If I execute ls -al, i get: drwxr-xr-x 14 root root 4096 Jan 16 02:15 <dir-name> But I want: drwxr-xr-x 14 <user> <user> 4096 Jan 16 02:15 <dir-name>
  • 123
0 votes
0 answers
166 views

Best practice with user permission?

When adding new users to my server, I want them to have their own /home/ dir, and also /home/user/www/ which is linked from their own apache html folder. No other user should be able to view those ...
  • 1
0 votes
1 answer
54 views

unable to mount any drive that working fine on windows [duplicate]

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount. When I try to enter my Windows partition through Nautilus I ...
-1 votes
1 answer
66 views

Disallow command usage for a specific user [duplicate]

I recently bought a VPS with Ubuntu 18.04 (Server) on it, and ever since I've started using it I've been spammed by one of my friends regarding that he wants an account. I wanna take some revenge on ...
  • 1
0 votes
1 answer
1k views

How can I give a new user to access file/folders in an existing user

Currently I already have a user deploy which has a script to run the deployment. I would like to create another user for example developers, to have an access on deploy's script file. How can I ...
  • 103
0 votes
1 answer
92 views

I’ve been hacked and Ubuntu has been loaded to a FTP server. Lost admin privileges. [closed]

I am having a very difficult time. I had Windows 10 on a laptop. Somehow I downloaded a virus. Since then I believe a hacker gained access to my computer through Ip4 and Ip6 or the Pinter Port LP2. My ...
1 vote
1 answer
290 views

SSH : User can only access a particular folder in webroot [duplicate]

I would like to create a user which can only access and administer a particular folder via SSH situated in webroot of the server. Been through many blogs..none of them helped. I am using ubuntu server ...
8 votes
2 answers
17k views

How to restrict ssh and ftp to certain ip address?

What is the easiest way to make it so that the only way anyone could access the ssh or ftp for my ubuntu machine is to be on a certain ip address?
  • 83
2 votes
1 answer
509 views

Restrict access to USB ports by type in Ubuntu

How to limit access to any USB port by device type? For e.g. if I need to insert just my own mouse but no others? Is it possible to get somehow the usb device type (mouse,keyboard,drive) and it's id (...
  • 243
2 votes
0 answers
2k views

Allow user to execute jar file, but not to copy(read) it

I have interesting problem which I am not sure there is a solution for. I need to allow a specific user to execute a Java program(jar), but not to copy(read) it. The problem is that if I give only ...
0 votes
0 answers
220 views

How to limit access to usb port on PC?

I want to know if it's possible to configure usb port so that it allows you to read only files with a certain extension from the inserted usb flash drive? I want to exclude any action except reading a ...
  • 243
0 votes
1 answer
73 views

How do I make Ubuntu 14.04 unreachable from physical Ethernet ports? [duplicate]

Suppose that I have files that I'm afraid to even expose to a system that is connected to the Internet. Therefore, I've put them on a separate computer, which does not have Wi-Fi or any other sort of ...
0 votes
1 answer
2k views

How can I allow connections only from certain hostnames (IPs may change due to dynamic DNS)?

I want to allow connections only from certain hostnames instead of by specific IP (the hostnames are defined by dynamic DNS). For example, home.no-ip.org, mobile.no-ip.org, etc. Is this possible out-...
  • 254
0 votes
0 answers
51 views

Disable features

I have a question here I created a new user account and I want to disable some of the features in the menu so that the user can't have access too like the settings and what not how can I do that
1 vote
0 answers
73 views

Restricting users to a particular list of programs

Is there any way to restrict users on Ubuntu similar to Desklock for windows? Basically, these are computers for systems control and I need to keep them from opening anything other than the controls ...
  • 11
0 votes
1 answer
1k views

Access denied to Windows partition on Ubuntu 17.04 [duplicate]

I have installed Ubuntu 17.04 dual boot with Windows 10. Now I can't write data to my local disks from Ubuntu. I have only read access. Please help me to fix this problem.
4 votes
2 answers
2k views

SSH message after login, then restrict the user from using account

I want to "block/restrict" one of the accounts on my dedicated server, but I want user to allow to log in, then i want the message to pop up for him (for example in putty) and then close connection (...
  • 485
5 votes
1 answer
4k views

Restrict user access to GPU

I wish to restrict access to using a GPU (in terms of reserving memory on it) for certain users on a jointly used workstation. So if a user tries to access the GPU on SSH, for example via CUDA, that ...
  • 153