Questions tagged [restricted-access]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Adding authentication requirement for snapcraft applications

I have installed ubuntu server version 20.04. on my machines and deployed charmed kubernetes with snap/juju.However, not only does juju not require superuser privileges, but it throws an error when I ...
1
vote
1answer
61 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 ...
1
vote
0answers
35 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/...
1
vote
0answers
34 views

Restricting file copy to a folder in dependence on the size [closed]

I want to apply some restrictions for file copying. My restrictions are: If any file size is less than 5 MB, it can’t be copied to my data folder. If any file size is greater than 5 MB, it can be ...
3
votes
1answer
293 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 ...
2
votes
4answers
2k 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 ...
0
votes
0answers
91 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. ...
31
votes
2answers
5k 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 ...
0
votes
1answer
144 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 ...
0
votes
0answers
29 views

I can't open any file in any of my hard drives without my password ( which i use to log in my pc)

I can't get access or open any file in any of my hard drives without my password (which i use to log in my pc). For anything I want to open on my drives(except the home), I have to give password: I ...
0
votes
2answers
4k 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 ...
0
votes
1answer
622 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/...
0
votes
1answer
205 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 ...
0
votes
2answers
149 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>
0
votes
0answers
43 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 ...
0
votes
1answer
38 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
1answer
52 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 ...
0
votes
1answer
440 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 ...
0
votes
1answer
73 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 ...
0
votes
1answer
144 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 ...
3
votes
2answers
6k 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?
2
votes
1answer
109 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 (...
2
votes
0answers
1k 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
0answers
119 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 ...
0
votes
1answer
68 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
1answer
870 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-...
0
votes
0answers
36 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
0answers
72 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 ...
0
votes
1answer
897 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
2answers
896 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 (...
5
votes
1answer
3k 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 ...
0
votes
1answer
125 views

Restricting access to hosts file/websites?

To keep myself productive, I'd like to block access to certain websites no matter how little willpower I have. One thing I've done on Windows is password-lock my modified hosts file and kept the ...
0
votes
1answer
2k views

How to give full access to my other user for all files

When another user logs in to his account, he is unable to access DISKS and other files. He is also admin, but when he tries to open any disk this message shows.
0
votes
1answer
332 views

How do I assign a specific user read/execute permissions to a susbset of folders in shell & SFTP?

Been scouring the interweb for solution to this but all answers refer to either groups, folder owners or_all_users. In my case, I have my own user ("kai") and several others who use the machine. I ...
1
vote
0answers
1k views

Make an external drive Ubuntu + Windows accessible [duplicate]

just wondering if there is a way to make an external hard drive ubuntu/linux only accessible. So if someone plugs it into windows or mac, it wouldn't show any files or even the drive or show they are ...
1
vote
0answers
303 views

unixODBC access to MDB databasefile for all users

I have configured the odbc for a MS Access MDB databasefile. The access is ok when executing sudo isql -v MyDatabaseName since it returns Connected! and I get a SQL prompt and I can select data from ...
0
votes
1answer
818 views

Restrict SSH user to one directory only

We have a VPS server with a prod and dev version of web aplication. Also there are two ssh accesses - users cst-prod and cst-dev. Problem is, some developers under me keep changing things in /home/www/...
0
votes
1answer
182 views

How to block websites for a user, who has no root rights? [duplicate]

The situation is: I don‘t want to able to surf certain websites out of distraction of boredom, while I am in the University, studying. My idea is: Create a sudo-password which is to complex to ...
3
votes
1answer
1k views

How do I prevent root access from all TTYs

I am trying to secure root access on my Ubuntu servers (running 14.04 desktop and 16.04 server). I would like to disable root access on all TTYs except TTY1. I know this can be done by editing /etc/...
4
votes
1answer
11k views

How to allow users to create and delete file(s) / folder(s), but not modify them?

I have created a group name "app-data" and a folder /db-data/archived-data/ I want members of app-data to have all rights on /db-data/ folder but I want the same group users have only create and ...
0
votes
1answer
303 views

xhost command in script fails when executed by initctl

For some reason, I have to execute xhost +SI:localuser:root to allow GUI for root user. I have put this command in a shell script, which will be executed at startup by upstart. When I execute this ...
0
votes
1answer
2k views

How to change index.html file in apache from normal user when apache is installed in root?

I work in Ubuntu 14.04. Well, I always had the misconception that installing a software from the root user makes the software available to all users. So, I wanted to install apache and add my html ...
0
votes
2answers
1k views

How to limit users that can use root command

On an Ubuntu workstation with multiple profiles, how do you limit root access to specific profiles.
0
votes
2answers
52 views

How to disallow access to folder even for admins?

I'd like to create a new user account and allow them to do maintenance on the server, i.e. install and configure new software, restart the server, manage other users etc... However, I'd like to ...
0
votes
1answer
1k views

Prevent Linux from accessing some partitions in a Dual Boot system

How can I prevent Ubuntu 15.10 from accessing some of the partitions on my dual boot (with Windows 10) to prevent possible data corruption or loss when I'm out experimenting with dangerous commands.
1
vote
0answers
19 views

Folder access restriction during specific hours

I want to manage my time better and I'm looking for way to make my entertainment folder accessible only after 8 pm. Is there any way to do it with some bash command?
1
vote
0answers
40 views

websites doesnt load & restricted from accessing?

my company as installed ubuntu 14.04 14.04 LTS ON NEW COMPUTER DEVICE NAME: CTEL-DESKTOP MEMORY 1.9 GIB PROCESSOR INTEL CELERON(R) CPUJ1900@1.99GHz *4 GRAPHICS INTEL BAY TRAIL X86/MMX/SSE2 OS TYPE 32-...
-2
votes
1answer
47 views

Ask user privilage access

I create one 'pradeep' user, that 'pradeep' user access only 'pradeep' home directory , and pradeep user cannot view remaining home directory and he go that remainng home directory its shows access ...
1
vote
1answer
320 views

Wine slow to start when blocked access to network through iptables

I've got a separate user for running untrusted applications in wine and it was relieved from accessing network at all by using # iptables -A OUTPUT -p all -m owner --uid-owner username -j DROP Now, ...
2
votes
2answers
13k views

How to edit /boot/efi

I have installed rEFInd, and it works well enough, but I am trying to add a theme. To do so, I need access to the /boot/efi/ folder. When I try to access it, I get the following error: rufio1337@...