mikem
  • Member for 1 year, 3 months
  • Last seen more than a month ago
2 answers
2 votes
62 views
refresh all data on a hard disk to improve data retention
2 votes

ZFS is the answer to most real-world on-disk data integrity issues. It will detect and correct bitflips, and any number of other data corruption events. It's pretty stable on linux and rock solid on ...

View answer
1 answers
2 votes
38 views
Tracing actions by user on a shared SSH key access
2 votes

This is why many companies have policies prohibiting human accounts from using ssh keys... they tend to share them and/or don't put passwords on them so that the keys themselves basically become ...

View answer
1 answers
2 votes
2k views
What exactly does zpool export do?
Accepted answer
2 votes

I do something similar to what you are describing and I think you may be a little mixed up in the use of zpool export. zpool export removes the entire pool from the system... snapshots and all. This ...

View answer
3 answers
3 votes
287 views
sudo: run zoom as another user
2 votes

Possibly it doesn't know what display to use. When you start it with sudo, it's creating a new shell. If that shell is unaware of the display, it won't be able to open a window. To test this, try to ...

View answer
2 answers
1 votes
60 views
copy ssd to hdd using dd, hdd won't boot
1 votes

If you're just trying to move your entire system from a smaller drive to a larger one, try a disk imaging utility. I've had good luck with Clonezilla (https://clonezilla.org/downloads/download.php?...

View answer
1 answers
0 votes
263 views
Restrict user to switch to root user but have all commands to execute
1 votes

You can't. If you want to allow someone to do anything as root, they don't need su or sudo to become root. Simply allowing them to run chown and chmod as root will give them root access to the ...

View answer
1 answers
0 votes
35 views
Make files read-only - except for the program that creates them
Accepted answer
1 votes

Run programX.py as a separate functional user account and group. This will cause all files created by that program to be owned by the functional account. Set the umask in the functional accounts ...

View answer
1 answers
0 votes
118 views
How to delete a speed dial in Asterisk/FreePBX
1 votes

If you're sure you used the asterisk *75 to store the speed dial and didn't store it directly in the phone, then try this on your asterisk server: Enter the asterisk command CLI (asterisk -r) CLI> ...

View answer
1 answers
1 votes
37 views
Overide delete(-rm) event to move to(-mv) folder
1 votes

I'm going to assume your linux server is sharing the disks via samba. If that's the case, have you looked at vfs_recycle (https://www.samba.org/samba/docs/current/man-html/vfs_recycle.8.html) ? It ...

View answer
1 answers
0 votes
47 views
Recording monthly network usage for a metered connection?
Accepted answer
1 votes

You are really only concerned with traffic that goes outside of your local network. Most OS-level network statistics are going to be at the interface level, not the destination/source level, and ...

View answer
2 answers
0 votes
511 views
Routing traffic for one IP address though a specified interface
1 votes

If you are able to assign an additional address to the 192.168.1.86 host, you could approach it like this: On 192.168.1.86 use "ifconfig -a" to get the list of current interface settings, ...

View answer
2 answers
0 votes
71 views
Changing ownership of a directory
1 votes

Use the chgrp command. ie. sudo chgrp -R /PATH/TO/DIR Using chown will work with names or numbers... ie. specifying 27 would have worked if you had also specified the username/UID correctly. For ...

View answer
2 answers
0 votes
193 views
Syntax for number of cores in a Sun Grid Engine job file
Accepted answer
1 votes

The mpstat command will show you the number of CPU's (ie cores). You may have to dice apart the output to get just the number, but it will display the data for you. In linux, there is also the lscpu ...

View answer
2 answers
2 votes
2k views
ssh fails with pam_systemd(sshd:session): Failed to create session: File exists
1 votes

Check the values of MaxSessions and MaxStartups in /etc/ssh/sshd_config. You may be running into either a session limit or a connection limit. If you have control over the external script, fix it. ...

View answer
1 answers
0 votes
27 views
Filelight /home in /usr/share
1 votes

Are you sure it's in /usr/share? To me it looks like it's in just plain ole /home. Firelight is telling you there are 91,000 files taking 2.1G in /home/fernand. If you use "du -hs /home/fernand&...

View answer
1 answers
1 votes
386 views
How to make Linux kernel execute files open for writing, or fixing the "text file busy" error
Accepted answer
1 votes

I can't comment yet, but can you give us more specifics on your environment? I am unable to reproduce the behavior you are seeing. For example, I have an NFS filesystem mounted on /test. If I run ...

View answer
1 answers
0 votes
69 views
Parental password for kid's account
1 votes

A single parental account might not be an option, but perhaps a parental account for each of the child accounts... Create a "parental" account with the same UID, GID, home directory and ...

View answer
1 answers
-1 votes
174 views
Set up file share with automatic mount using NFS
Accepted answer
1 votes

The server shouldn't care if the client is reachable or not. It's just making a share available... whether it's used or not. The error you are getting "exportfs: failed to resolve pc", isn'...

View answer
1 answers
0 votes
190 views
how to move all files and folders to another folder using mv command
Accepted answer
0 votes

If your files are currently in /backup/folderwithfiles and you want to move folderwithfiles to /live/newfolder then: cd /backup mv folderwithfiles /live/newfolder If newfolder already existed, ...

View answer
3 answers
0 votes
55 views
Blocking internet of an DHCP assigned static IP, but allowing internal LAN network to get to device
0 votes

In the router, use a reserved address for the Pi's MAC address(es) and don't assign a default route. That way, whenever the pi reboots it will always get the same IP address but no route. Then, in ...

View answer
2 answers
1 votes
85 views
Add another root with different uid and name
0 votes

Short answer is, you can't. The name "root" is mostly arbitrary... it's UID 0 that matters. You can assign as many UID 0 users in /etc/passwd as you want to and when they login, they will ...

View answer
1 answers
0 votes
49 views
watching cctv footage without internet explorer
0 votes

Viewing the live feed should be easy with VLC or just about any other player that can handle RTSP or ONVIF. Viewing internally-stored recorded videos will be a bit trickier. Some cameras might ...

View answer
2 answers
0 votes
1k views
ZFS adding new device to RAIDZ
0 votes

You can re-create the raidz again using the same disks, but the data previously on those disks would be lost. For example, if you had a raidz with 5 drives in it... ie. sd1 sd2 sd3 sd4 sd5... you ...

View answer
1 answers
0 votes
63 views
Terminal prompt wrapping incorrectly
0 votes

I'm not sure why you would have gotten the same behavior when setting the PS prompt to something simple (ie PS1="[hostname] "'$LOGNAME:$PWD> ', but the problem goes away if you remove the ...

View answer
2 answers
0 votes
65 views
Why does the copy speed decrease for a single file?
0 votes

The HDD is much faster than the USB stick, so when the file is read from the HDD it goes into the cache to free the HDD up for other tasks. The data is then sent to the USB stick at a speed it can ...

View answer
2 answers
1 votes
67 views
What is the most effecient way to start this application?
Accepted answer
0 votes

It looks like you moved the entire burpsuite into /usr/bin -- as if you did: mv /opt/BurpSuiteCommunity /usr/bin Really you just want to add the burpsuite bin directory to your path while leaving ...

View answer
2 answers
0 votes
84 views
which partitions encrypt?
0 votes

Encrypting your data at the filesystem level is unlikely to protect you from anything on a system that is up and running. Once the system is booted and the filesystems are mounted, the data is ...

View answer
1 answers
1 votes
99 views
SUDO_* environment variables not set when using sudo su -
0 votes

Try it without the -i and the variables should go across for you. If that doesn't work, you might consider having them specify the variables on the command line? Maybe not ideal, but it would give ...

View answer
1 answers
3 votes
59 views
Directory that lets anyone do anythning to everyrthing regardless of creator
0 votes

While you are setting the directory permissions to 777, each user's file within the directory are still owned by that user/group -- specifically their UID:GID. AND, the file permissions don't allow &...

View answer
2 answers
0 votes
331 views
Write to linux serial port from bash script
Accepted answer
0 votes

Check your script. I think what you will want to do is test for the return code from the echo command. For example, if you simply run the echo from the command prompt: $ echo -e "USB Command&...

View answer