78
They decide the "computer" is "frozen" and call in to have it restarted, which my other staff just does.
Here is your problem. This is not a technical fault, so don't try and implement a technical solution.
Instead, you should implement a process whereby every call or ticket for this type of problem actually gets troubleshooted before any action is taken. ...
73
Use the query user command
Query User Command
http://technet.microsoft.com/en-us/library/bb490801.aspx
45
Open the Task-Manager and see the users tab. There you will find a list of users and their status.
42
Your problem is step 5, where your other staff restarts the computer without doing even the most basic troubleshooting.
I assume you're referring to IT staff, who should frankly know better, and not make the problem worse, which is what they do when they just reboot the computer without doing even basic troubleshooting. Rectify this problem first, and ...
answered Jan 17 '14 at 0:52
HopelessN00b
52.4k3030 gold badges128128 silver badges202202 bronze badges
34
This is sometimes due to a design limitation in x64 Windows with regards to interaction between 32-bit applications and 64-bit drivers. In addition to print dialogs, another common scenario where this occurs is when using 32-bit Internet Explorer and dialogs for smart cards.
Microsoft provides some background information on the cause here:
The Save As ...
22
The destination is changing in time. On Windows 10:
%systemroot%\ServiceProfiles
E.g.:
%systemroot%\ServiceProfiles\LocalService
%systemroot%\ServiceProfiles\NetworkService
19
This could be caused by User Account Control, a feature (hated by many) which makes so that, even if you have administrative rights, you don't actually have them unless you explicitly request them. There are two distinct policies governing UAC behaviour (both found in Computer settings\Windows settings\Security settings\Local policies\Security options), one ...
19
They both can do the same, it's just with usermod you can do it wrong if you don't pay enough attention.
In this wiki from Arch Linux (it is the same for other distros), it's explained:
To add a user to other groups use (additional_groups is a
comma-separated list):
# usermod -aG additional_groups username
Warning: If the -a option is ...
16
The correct answer is: -U '!root' (or -u '!root' on some Ubuntus). This was introduced in top v3.2.9:
man top for -U option:
Prepending an exclamation point ('!') to the user id or name instructs top to display only processes with users not matching the one provided.
Remember to put the exclamation mark and username in single quotes.
16
These users seem to be the default users that were added when MySQL was installed. It is recommended that you run mysql_secure_installation after installing MySQL.
The empty usernames (''@'SERVERNAME') represent anonymous users. If you didn't run mysql_secure_installation or set the password, then anyone can gain access. If the anonymous user has GRANT ...
15
Yes, you can absolutely use update-alternatives for yourself. For example, I have different LLVM versions installed under ~/.local/llvm-VERSION. I can install binary links into ~/.local/bin (which is in my $PATH) like this:
alias update-my-alternatives='update-alternatives --altdir ~/.local/etc/alternatives --admindir ~/.local/var/lib/alternatives'
mkdir -p ...
14
This seems to do the trick (with perhaps a caveat), to find all folders that user "someuser" has access to, in this example on the C drive, using the built-in Windows icacls command:
icacls c:\*. /findsid someuser /t /c /l
The /t is needed to tell it to recurse directories. The /c is needed to tell it to keep going even if it encounters errors. The /l ...
13
I usually install with the mysql_secure_installation script MySQL is shipping with now...
root@127.0.0.1 is the @ IP address. root@localhost is @ hostname. Ditto for the server name. And the last root is @ IPv6 address for localhost.
From the MySQL site:
An attempt to connect to the host 127.0.0.1 normally resolves to the localhost account.
However, ...
12
I've used win32_loggedonuser, but ran into an issue where more than one domain user was returned, so it didn't work for my purposes. Instead I used (In powershell)
#Get Currently logged in user
$ExplorerProcess = gwmi win32_process | where name -Match explorer
if($ExplorerProcess.getowner().user.count -gt 1){
$LoggedOnUser = $ExplorerProcess.getowner()....
12
I would personally invert your strategy and run the script as a non-privileged user, with sudo used to run the commands requiring root privileges. Is there any specific reason you need to run the script as root?
To answer your question however, you can use the -c flag to run a specific command as a user:
su someuser -c "touch /tmp/file"
Reference: http://...
12
Yes.
You can add domain accounts to individual machines, and into whatever groups you want on individual machines as well. On a manual, one-off basis (for example, NET LOCALGROUP Administrators [domain]\[account] /ADD), programmatically with a script, or even using Group Policy to handle it dynamically and automatically.
answered Jun 23 '14 at 14:46
HopelessN00b
52.4k3030 gold badges128128 silver badges202202 bronze badges
10
Check out the Nagios FAQ at No permission to view configuration, which says:
Description: If you click on "View Config" and you get: """It appears
as though you do not have permission to view the configuration
information you requested... If you believe this is an error, check
the HTTP server authentication requirements for accessing this CGI and
...
answered Feb 11 '14 at 1:01
Stefan Lasiewski
21.5k3636 gold badges124124 silver badges180180 bronze badges
10
You can name your classes as you want, but you need to use the right name for resources. In this case, the resource you want to use is user.
There is a very simple way to know how a resource should look:
$ puppet resource user dawud
user { 'dawud':
ensure => 'present',
comment => 'David Sastre Medina,,,',
gid => '1001',
groups => [...
10
Even when you've encountered this problem before, it can be a real PITA to go hunt for a hidden modal dialog box.
Ultimately, it's a UI problem shared between platform and application. If users get confused by my product, it's a bug in the product. The application could show an indicator in the main window saying [pending print dialog (Click here to ...
9
Situations like these are the result of a couple of factors:
No formalized education on mail usage
Folk-wisdom based transmission of common tasks like vacation rules and how to set up automatic filers
Lack of pain for not deleting anything
These days, we're not quite at the point where a majority of the overall workforce has been dealing with email their ...
answered Jan 29 '13 at 1:04
9
The wheel entry in the sudoers file is commented out, so the group wheel has no sudo access at all.
Remove the # from the line:
%wheel ALL=(ALL) ALL
answered May 29 '17 at 9:03
Gerald Schneider
12.8k66 gold badges3434 silver badges6060 bronze badges
8
While I think your idea is insane there are ways to accomplish this. Active Directory permits you to insert a DLL on Domain Controllers that will capture the password provided by a user. You can do any arbitrary action you like within the filter like storing the password.
One example is the Password Filter DLL this DLL captures the password update event ...
8
One possibility is /proc mounted with either hidepid=1 or hidepid=2. This mount option was added in latter Linux kernels and back ported sometime around CentOS 5.9 and 6.3.
Mount options
The proc filesystem supports the following mount options:
hidepid=n (since Linux 3.3)
This option controls who can access the information in
/...
8
How to list all users and groups depends on how authentication is configured.
The most basic are the /etc/passwd and /etc/group files used for local authentication.
Using those files is insufficient to get a complete listing when user/group data is stored centrally, for instance in LDAP, NIS, Hesiod, etc.
Central authentication is usually configured in ...
8
Premise: using sudo (as suggested by the accepted answer) probably is the correct solution at your problem.
That said, if you really need something resembling a second root account, you can create an alias to the system root account.
To do that, follow these steps:
open /etc/passwd
locate the root account line (often the very first line). It will be ...
7
Try
$ sudo adduser --system --no-create-home --user-group --disabled-login --disabled-password nginx
Or
$ sudo adduser --system --no-create-home --user-group -s /sbin/nologin nginx
7
You can use PowerShell without needing to download anything else. This will work with v2.0 and later:
$ReferenceAccountName = 'DOMAIN\Username'
[string[]]$SearchDirectories = @('X:\SomeDirectory', 'F:\AnotherDirectory')
foreach ($RootDir in $SearchDirectories) {
$DirACL = Get-Acl -Path $RootDir
foreach ($ACL in $DirACL.Access){
if ($ACL....
7
There is a better trick:
su - user
script /dev/null
screen
7
Configure an auto-pdf printer?
Not sure if this might be an option worth looking into, but I wanted something vaguely similar: Auto PDF printing without prompts or popups.
I have a program that prints stuff that I'm upgrading and for testing purposes I want to print to PDF, auto-name it and not have to think about that part of the process.
I setup Pdf24 ...
7
Is there any difference using Active Directory Administrative Center over Active Directory Users and Computers?
Yes, ADUC is a subset of ADAC. ADAC is newer and allows for more complete administration. For example, you can enable the AD Recycle Bin, recover deleted objects with the Recycle Bin, and create a Fine Grained Password Policy from ADAC, but you ...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
users × 592linux × 116
permissions × 83
active-directory × 61
groups × 55
windows × 38
ubuntu × 35
ssh × 31
apache-2.2 × 30
user-management × 27
mysql × 26
centos × 21
user-accounts × 20
debian × 19
ftp × 19
password × 19
security × 18
windows-server-2003 × 18
windows-server-2008 × 17
domain × 16
ldap × 16
unix × 16
login × 16
root × 14
powershell × 13