Score: 0
WillyKeurig avatar
What are directory permission conventions?
in flag

Running command ls -l / shows permissions of directories on my server.

I noticed that most directories are set to 755 or rwxr-xr-x, link bin and directories lib, lib32, lib64, libx32 are set to 777 or rwxrwxrwx.

/tmp uses a sticky bit but others don't. Are the other permissions a security risk? What are conventions regarding these permissions?

Score: 0
Chris Hammond avatar
Azure Graph - Graph query to retrieve App Service Plan (Microsoft.Web/serverfarms) CPU%
br flag

I need to do some consolidation on my company's Azure estate, especially around App Service Plans.

In the past, we would typically create a new App Service Plan for each service we deployed as this would aid us with departmental cross-charging as each ASP would be tagged with each department's cost code.

We now have a massive sprawl of ASPs and I suspect none of them are probably running anywhere ne ...

Score: 1
Mickaël Philippon avatar
squid commSetConnTimeout
tr flag

I'm using squid 3.5.20 on centos. I send a curl request to bigquery directly without a squid proxy, and I have a response after 8 minutes.

Now, when I launch the same curl request through the squid proxy, I have a response after 15 minutes.

When I set debugging mode on squid, I can see a timeout of 900 during the tunnel.

" commSetConnTimeout: local= remote= ...

Score: 0
Dalzzz avatar
Resetting but keeping last day's files
pe flag

im having a problem with my ubuntu. I made a disaster today and i'd like to reset it, but without clearing it at all, just resetting by 1/2 days. How can i do that? Thanks for your time

Score: 0
Nick avatar
Ansible playbook not running : Import error
uz flag

enter image description here

ansible-playbook -v -i Monitoring/hosts Monitoring/main.yml
[WARNING]: log file at /var/log/ansible.log is not writeable and we cannot create it, aborting

Using /etc/ansible/ansible.cfg as config file
/etc/ansible/roles/Monitoring/hosts did not meet host_list requirements, check plugin documentation if this is unexpected
/etc/ansible/roles/Monitoring/hosts did not me ...
Score: 3
Akala Volo avatar
Is there a real point to using "Run as" local admin accounts instead of logging in as a local administrator?
uz flag

Let's start by setting the scene -- I'm a junior systems administrator tasked with conducting a transition of the company towards a "Least-Privilege" model. This includes removing admin rights from our users, who mostly work with Windows 10.

Now at this point in time, users are (for the most part) using accounts with local admin rights. This is obviously pretty bad, and we're working on changing  ...

Score: 1
How does password_verify() function gets the salt from the password stored in DB?
sg flag

I am creating a simple Sign up and Sign in form using PHP. At the sign up, I create hash using password_hash() function and then store it in the DB. At the time of Sign in, initially what I did was created a new hash using password_hash() function again and then compared it with the stored Password hash.

This failed all the time because as I understand now, a new salt is used every time you creat ...

Score: 1
teodor avatar
Updates Warning
au flag

I am a very new Ubuntu and Linux user and I encounter the following warnings when updating with sudo apt-get update:

Hit:1 stable InRelease
Hit:2 hirsute InRelease                           
Hit:3 hirsute InRelease                        
Hit:4 ...
Score: 0
Image field input renders with type text instead of file
om flag

(Drupal newb - please go easy and give references that help me learn how to debug stuff in Drupal myself, thank you!)

I've taken over a Drupal site with 7.80.

There's a type called Event which has a bunch of fields including an Image. There are many existing Events where Image upload presumably worked fine in the past. The images are visible when editing those Events.

Problem: The form for adding a new E ...

Score: 0
Does Windows store time/date when a known SATA drive/volume was last connected?
jp flag

Assume an internal SATA hard drive named "Samsung-XYZ" with one partition called "Backups" is connected to a PC.

If the drive is removed (while the PC is powered down), will the system have saved:

a) information about the removed drive/volume, and particularly

b) when this drive/volume was last connected?

I found a similar question here: ...

Score: 0
P Simdars avatar
Edges of display are cut off, any way to tweek that?
cn flag

The edges of the display are cut off. I looked at a few of the other responses, but my TV doesn't have those settings for the display (I have an element TV). I wouldn't really mind not seeing the full edges but it cuts off the time display and I can't tell the time.

Score: 0
rayan nakib avatar
wayland custom resolution
in flag

how can I set a custom resolution on Ubuntu 21.04 with Waylandenter image description here

Score: 0
Ubuntu 18.04 unable to login as user, but can login in tty3
za flag

I accidentally messed up the permissions by typing sudo chown -R root:root /usr. It was supposed to usr instead of /usr. anyway, I lost sudo function and showed the error message sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set. But I followed this thread and solved that issue.

But after that I rebooted and tried to login my user. After typing t ...

Score: 0
mosquetero avatar
Verify in ExecStartPre if bash binary exists
it flag

I want my service to start only if another service is not active. To do so, as explained in this other question, I am going to do:

ExecStartPre=/bin/bash -xc '/usr/bin/systemctl is-active --quiet other-unit.service && exit 1 || exit 0'

However, there is a small possibility that the OS does not include /bin/bash. In that case, I'd like the service to start anyway. I was trying to achieve this b ...

Score: 2
io4250 avatar
How to batch rename sequentially prefixed numbers to new sequential prefixes via terminal?
ng flag

How can I batch rename, using the terminal, a set of files where multiple numbers share the same prefix so that all those prefixes are set to new ones?

For example:   ->   ->
011.baz.gif   -> 001.baz.gif
012.qux.js    -> 002.qux.js
012.corge.png -> 002.corge.png
020.thud.txt  -> 010.thud.txt

I'd like to use the rename command if possib ...

Score: 0
Extend Commerce api shipping methods response with custom fields
cn flag

With commerce api module, you can fetch all available shipping methods of an order with a GET request on {{host}}/jsonapi/checkout/{{cart_uuid}}/shipping-methods. Result is something like this:

        "type": "shipping-rate-option",
        "id": "3--default",
        "attributes": {
            "shipping_method_id": "3",
            "service": {
                "id": "default",
                "la ...
Score: 0
John F. Arroyave Gutiérrez avatar
How to delete a project shared with me?
cn flag

Somebody shared with me a project and now when I try to delete it OR HIDE it I cant do that.

Does anybody knows how to hide that project from my list of projects? I'm not interested to see it anymore.

Thanks in advance

Score: 0
Syed Ali Zain Shah avatar
How can I reconfigure the network to static IP address while /etc/network/interfaces not found?
us flag

The book I am following for Malware Analysis is older than the current version of Ubuntu I am using. I am using Remnux OS. According to the book, I have to update /etc/network/interfaces but in the new version, this file isn't present. I recreated by sudo gedit /etc/network/interfaces and edited the text but did not work for me to make the static IP of the VM. The content I added into the file is given i ...

Score: 0
Abinandhan K avatar
How to make and receive phone calls via Ubuntu?
fr flag

Is it possible to make and receive calls on Ubuntu when my phone is connected to my machine via Bluetooth?

Score: 1
john lau avatar
Network Cable Unplugged After waking from suspension after Upgrading to 21.04
nr flag

I've just upgraded to 21.04. Now after waking from suspension. The network cable is shown as unplugged. I found a solution. which is I have to remove and reinstall the ethernet device driver. Via modprobe -r and then -i. Everytime after waking from suspend.

Is there any elegant and simple solution to fix this?

Upgraded from 20.10 to 21.04

lspci -nn | grep -i ethernet

04:00.0 Ethernet controller [0200]:  ...
Score: 0
Jarmund avatar
Locating "Timeout on hotplug command"
rs flag

I have a set of machines identical in hardware, and almost identical in softare setup. But one of them is filling up /var/log/messages with:

Jun 16 09:41:37 h0stname kernel: pciehp 10000:00:00.0:pcie04: Timeout on hotplug command 0x13f8 (issued 10082 msec ago)
Jun 16 09:41:37 h0stname kernel: pciehp 10000:00:01.0:pcie04: Timeout on hotplug command 0x13f8 (issued 10082 msec ago)
Jun 16 09:41:47 h0stname ke ...
Score: 0
After update can't boot, only terminal grub>
in flag

I have a dual boot laptop, and the isssue is very similar to this post 6 years ago, but all my options are different and when I try to use the answer it doesn't work.

The problem occurred after a large firmware update, after which the normal grub menu stopped working (it booted straight into Windows). I could get it into linux though so I ran the boot-repair tool. Since then I can't boot anything, not ev ...

Score: 0
IlyaChch avatar
Is there a way to blacklist some audio devices?
jp flag

Ubuntu 20.04.2, Thinkpad

After connection to dock, there appears new devices, such as:

  • Digital output (S/PDIF) - ThinkPad Dock USB Audio
  • Analog output - ThinkPad Dock USB Audio
  • Digital Input (S/PDIF) - ThinkPad Dock USB Audio

S/PDIF audio Analog audio

The main problem - default input and output device switches to this devices and does not switches to headphones, when they connected.

It there a way to make system ignore them? ...

Score: 0
Rahul avatar
Active Directory User Can't Authenticate in ubuntu machine
us flag

The following occurs when the user attempts to authenticate:

root@winlinubcl2:~# sudo realm join -U Administrator
realm: Already joined to this domain

root@winlinubcl2:~# id
id: ‘’: no such user

Score: 0
cocq avatar
rebuild a form with ajax (solved)
gb flag

In a hook, I use ajax on a form field, designed with drupal user interface. It is declared as this :

$form['field_unite_de_recherche']['widget']['#ajax'] = array(
'callback' => 'ajax_equipes_from_unites_callback',
'event' => 'change',
'method' => 'replace',
'wrapper' => 'edit-field-equipe-membre2',

In the callback function, I retreive some values in the database from the selected value  ...

Score: 0
Mani Ram21 avatar
Unable to join Samba ad domain in Windows Client- "DNS name does not exist."
cn flag

I have installed samba ad in ubuntu 18.04 cloud server and dns records available in that server

The following error occurred when DNS was queried for the service location (SRV) resource record used to locate an Active Directory Domain Controller (AD DC) for domain "":

The error was: "DNS name does not exist." (error code 0x0000232B RCODE_NAME_ERROR)

The query was for the SRV record for _ld ...

Score: 1
aemd avatar
Remote Dual Booting
cn flag

I manage an IT lab of 37 computers with dual booting (Dell Optiplex with Windows 10 LTSC and Ubuntu 20.04 LTS on separate drives). If Wake-On LAN from another PC: default boot via Grub is Windows, Ubuntu needs on-site presence. Is there a way to remotely select a desired OS to boot? Either the PC is powered off, or a reboot on any of the two systems is needed. Many thanks, Alex

Score: 0
StressedBoi69420 avatar
Open CWD in File Explorer | 20.04 LTS on Windows 10
th flag

How do I open CWD in file explorer, Windows?

I have tried the following lines but without luck:

open .

explorer .

open() {
  explorer.exe `wslpath -w "$1"`

Score: 2
Igor Foxly avatar
OBS 27 has no Wayland option on Ubuntu 21.04
sg flag

So, as you can see I have pipewire installed but there is no option for it. And yes, I installed OBS from its PPA that means it is up to date (27.0.1)

enter image description here

Score: 0
SMTP "root+:"|sleep 5 #"" what is meant by this query i found it in dataset of smtp protocol
ru flag

what is "root+:"|sleep 5 #" in SMTP, I have found this line in dataset of SMTP protocol I have attached a picture of dataset, any one who can help me by explaining whats happening in it. enter image description here

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.