All Questions
91 questions
0
votes
0
answers
79
views
User desactivated after VPS migration/restart
After a VPS forced migration by host, main user ubuntu is desactivated.
VPS restart at 10PM and /etc/shadow file have been modified at 10PM.
Change is the ! added:
ubuntu:!$
Host says it can't be them....
0
votes
0
answers
41
views
Assistance Needed with Hosting PHP Application on Ubuntu 20.04LTS with Apache2
Hello Ubuntu Community,
I am encountering an issue while hosting a PHP application on Ubuntu 20.04 LTS using Apache2. Below are the specific requirements for my setup:
System Setup:
The Ubuntu system ...
1
vote
1
answer
566
views
Prevent sudo useres changing root user password
I'm a newbie here.
I have deployed a Linux server and I wanted to add other users to it. Then those users must able to install applications on the said server. To do that those users must have root ...
0
votes
1
answer
75
views
I am unable to find /home/user/Personal/Documents files in /home/ramendu/Personal/Documents
Unknowingly I have deleted my /home/user/Personal/Documents files. How can I recover them?
[
0
votes
0
answers
15
views
Setting up a Samba server. New files are being created with no Write access to the group? [duplicate]
I've been bonking my head against this for 2 days. Maybe someone linuxier than me can see my error.
Ubuntu Server 22.04.3 LTS
Samba version 4.15.13-Ubuntu
Stand Alone Server
My goals:
only allow ...
0
votes
1
answer
60
views
how to manage mulitple users for processing in linux server?
I am a computational student, and we have three servers, each with 48 processors and multiple users.
here is what I want to do. I want a system in which each user has a specific number of processors ...
0
votes
0
answers
49
views
ubuntu:ubuntu owns "/" - all server files
So recently, I made a mistake. I did;
sudo chown -R ubuntu:ubuntu /
Now, my server is pretty non-functioning, and the fact that my server is using 100% of it's space, doesn't make the situation any ...
0
votes
1
answer
401
views
New user on newly created server, added to sudo group but still no sudo access
I created a new server (ubuntu-s-2vcpu-2gb-nyc1-01) with Ubuntu 22.04 and added a new user (michael). I then added the user to the sudo group. When I check the groups for michael I see the correct ...
0
votes
1
answer
311
views
Why does adding a user to the sudo group give him access to the sudo command?
Ubuntu newbie here!
As far as I understand groups exist so that file permissions can easily be assigned to many users at once, or to allow specific applications to access files securely, such as with ...
0
votes
1
answer
564
views
user created with admin rights but getting permission denied error
I have a created user which has admin access. For some hosts the linux commands work seamlessly, but for some systems when the command is entered it shows permission denied:
praveen.kumar@chn_lab:/...
2
votes
3
answers
2k
views
Is it recommended to change root directory permission to improve security?
I have a computer running Ubuntu 20.04 Server. I bought my server in Digital Ocean 1 year ago (more or less) and every month I try to improve its security and I'm getting affortunnelly. But about user ...
2
votes
0
answers
6k
views
SSH Server refused our key: Invalid user
I wanna log in via public/private Key to SSH.
I use the Port given in the sshd_config I added two users. Both have
the folder .ssh(chmod 700) and the file authorized_keys(chmod 600).
User A can ...
0
votes
1
answer
67
views
How do I make a directory in Linux without it being made in other users on the server?
I recently ssh into my company's airflow server, so there are multiple users on this server. Whenever I make a new directory say it makes the directory in all of the other users as well. How can I ...
-1
votes
2
answers
60
views
Manage accounts on ubuntu machine
I've installed Xubuntu 21.04 on a machine that I'm using as a server and I created other roots accounts to let other people use it.
Now some of them needs the same software, but in different version ...
1
vote
1
answer
4k
views
How to switch user (su) to the odoo account? (This account is currently not available error.)
How do I su to the odoo account?
nicholas@mordor:~$
nicholas@mordor:~$ sudo su odoo -
This account is currently not available.
nicholas@mordor:~$
nicholas@mordor:~$ awk -F: '{ print $1 }' /etc/...
1
vote
1
answer
746
views
Make a read only filesystem for one specific user (Ubuntu 18.04)
How do I make a read only filesystem for one user only? For example, root would have full access to the system, but a user I create called bob only has access to his home directory?
0
votes
2
answers
3k
views
Giving Windows user permissions in Samba shares
I'm pretty new to Linux and especially to Samba.
so, I installed samba and created a share.
my Windows server and client PC's can connect to it.
but I want to give the different Windows users ...
2
votes
1
answer
2k
views
ubuntu live-server as rescue system - how do i log in?
i want to try out a few things on the ubuntu live-server (currently ubuntu-20.04.1-live-server-amd64.iso from https://releases.ubuntu.com/).
it would be much easier for me to be able to log into that ...
0
votes
0
answers
1k
views
Start node app with non root user | Permission denied
I have an ubuntu (v19) server, which I use to host a node web app. Usually I was loged in as root and was able to start the app with node index.js or sudo node index.js.
Ubuntu Info:
Distributor ID: ...
2
votes
1
answer
2k
views
Why do I get "Documents: No such file or directory" on Ubuntu Server?
I have just installed Ubuntu Server, but I cannot use it because it seems like I do not have any files, not even a Documents directory. Do you have any idea why I cannot see any files?
talina@DESKTOP:~...
0
votes
1
answer
2k
views
Roaming Profiles Equivelent
I was in the process of setting up a network made up of 6 linux machines and 1 linux server, and I was wondering if there was a way to create user accounts that can be accessed from all machines ...
0
votes
1
answer
587
views
what's the point using www-data for user and group?
if this has been asked before I apologize.
Usually the advice for setting file permission in wordpress are folder 750 and file 640 with user and group www-data. Based on my understanding if user and ...
1
vote
0
answers
109
views
How to give Permission two users for a share folder. One can read, write, delete and other can read write but not delete
share folder name All
Two user: user1 and user2
Both of share same folder and user1 can read,write,delete but user2- read,write remove permit to delete.
getent passwd jahid3--
jahid3:x:1001:100:for ...
5
votes
2
answers
14k
views
How to create a group, add users to the group, and have that user access all folders in files in that directory?
I want to basically create a group called Staff. I want staff to be able to access the folder /home/Clients and all of the subdirectories and files inside the Clients folder.
How would I go about ...
-1
votes
1
answer
76
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 ...
2
votes
1
answer
144
views
Why is 'Authenticated' setup of FTP on ubuntu very insecure?
I am reading the documentation for setting up an FTP server on Ubuntu, and the documentation states that using Authenticated users is very insecure. I dont understand why, because I am under the ...
0
votes
1
answer
164
views
Close access to folder1, but open access to folder1/folder2
I'm setting up local hosting, and I need to configure user system as on popular hosting providers.
For example: I create user 'user1' in group, for example, 'users'. And I gave him home folder /user/...
0
votes
0
answers
164
views
How to Restrict other FTP user to create file/directory with a specific name on a server
I want to add restriction on FTP users to create Files or Directories with a specific name like "abcd" on my server. Only I would be able to create that specific file name. Is it possible to do so?
1
vote
2
answers
21k
views
Permission denied please try again ssh error
I had a root access to my server and I was logged in through ssh. I I did this in my
AllowUsers john
/etc/ssh/sshd_config
in this file.
Now after this I rebooted the server. now I am unable to ...
0
votes
2
answers
87
views
User accounts on Ubuntu Server 14.04 [duplicate]
I'm new to Ubuntu server and I'm having a little trouble with a project.
I need to add a user account, add a comment, create and set the home directory, add primary group to user, and set the ...
0
votes
0
answers
80
views
add a second (multiple) owner / user for a folder (website folder) [duplicate]
Im using Plesk 17 and Ubuntu 16, Plesk automatically created an ftp user for my "webspace".
I won't give this created user more rights and can't change it easy to my main user withouth messing up ...
2
votes
1
answer
5k
views
how to create home directories for users automatically when they log in?
I have come across a situation where when users are imported from other servers or created but when they were created their home directory was not created. Hence, when they log in, they do not land in ...
3
votes
0
answers
154
views
How to disable job name in print notifications for other logged in users?
We have a terminal server where users log in via Thinlinc. They are provided with a mate session. When a user prints a document, a notification of the successful print job pops up for every user. The ...
4
votes
1
answer
161
views
Is it bad practice to store applications in the users home directory? [closed]
I use Ubuntu on all my servers. Recently I've started developing applications and bots that run periodically. I'm currently working on a Reddit bot in Python that is a fairly large application and ...
0
votes
0
answers
1k
views
How do I get my xclock to display in my ubuntu? Can't seem to fix this error
I'm trying to get my xclock to show in my ubuntu, I get this error when I try to get xclock to show:
chopin:~% xclock &
[1] 7888
chopin:~% Error: Can't open display:
[1] Exit 1 ...
4
votes
0
answers
1k
views
Can I unlock a brand new user to SSH in without setting password?
I'm following these steps when setting up the user:
$ sudo useradd periscope -m -s /bin/false
$ sudo su -s /bin/bash periscope
$ mkdir ~/.ssh
$ # public key gets manually input here
$ cat - >> ~...
0
votes
1
answer
749
views
Monitor user's CPU usage
I would like to run a script on 3 servers running Ubuntu 16.04 Server which logs each user's CPU usage. This can be a very "rough" log e.g. executing once an hour, checking how many cores are used by ...
0
votes
1
answer
2k
views
How to Allow two users to access one directory. (tried groups but failed) [duplicate]
I want to allow access to 2 users on one directory. I am trying since days but unable to do so! Let me make it simple for you guys to understand by giving a simple example. But first, Let me tell you ...
3
votes
1
answer
309
views
Removing and adding user back again doesn't remove it properly [duplicate]
If I, as a root user, add user milos, then the system asks me to provide some info, which I do.
When I, after that, userdel milos, it removes it and removes milos group.
Now, if I'm to useradd ...
0
votes
1
answer
3k
views
Access Denied on Samba shared files
I have set up samba server following this page https://wiki.ubuntuusers.de/Samba_Server/
What I did:
1. sudo apt-get install samba-common samba
2. sudo adduser --no-create-home <username>
3. ...
2
votes
1
answer
3k
views
Trying to setup a SFTP user with limited access
I was hoping someone could help me with this problem
"Trying to setup a SFTP user with limited access."
I'm running Ubuntu 16.04.2 x64 on a DigitalOcean server. I've posted this on the DigitalOcean ...
0
votes
1
answer
801
views
SSH connection refused and user not in sudoers file
I ran ssh localhost, and got:
ssh :connect to host localhost port 22: Connection refused
Then I tried sudu apt-get install openshh-server, and got:
user is not in the sudoers file .This incident ...
10
votes
2
answers
23k
views
Only allow one user on system to be SSH'd into
I have two users on my server, myuser and otheruser.
I want people to only be able to ssh into otheruser, and not myuser.
I have openssh-server installed, and port 22 forwarded.
When I run:
$ ...
31
votes
5
answers
4k
views
How to prevent a new user from doing anything dangerous?
I recently installed Ubuntu server on my server to try out the linux as a new user. I followed a tutorial on how to set up the web server which said I need to chmod 777 the web server dir so that it ...
14
votes
2
answers
33k
views
Output of getent group
Similar to This question, but different result set, can anyone help me with the output of getent group?
It's something like this:
groupname:x:0:
just not sure what the x:0: signifies?
0
votes
1
answer
139
views
users and nohup
How can I tell if there are processes running on a system owned by non-system users?
I thought the users utility command did the trick, but it only seems to track login sessions and not processes ...
1
vote
2
answers
308
views
Is it safe to revoke group other access to every directory in a file system?
I'm trying to secure an account on our server called ssh_user that is used purely for connecting via SSH to our server. Everyone on our team logs into this account via a PSK secured ssh connection ...
-1
votes
1
answer
91
views
Ubuntu Server/Samba
I've installed Ubuntu Server and added Samba to use as a very basic file server with a few different users with their own accounts. Should I create the users and the groups in Ubuntu or in Samba, or ...
1
vote
1
answer
8k
views
FTP user access limited to one folder
I have ftp server running on my raspberry pi and I have to users there I want to limit one user's access only to his home folder (/home/user), so when he logs in via ftp he can't go to other folders ...
0
votes
2
answers
655
views
SoftException in Application.cpp:566: Directory "/var/www/html/" is writeable by group
I installed "SuPHP" yesterday, and whenever, I am restarting "Apache", i am getting below error :-
* Restarting web server apache2 ...