28 votes
Accepted

Using at sign (@) in usernames linux. Is it safe?

I'd say it isn't good idea. I'd recommend to use simple regex: ([a-z_][a-z0-9_]{0,30}) Check following links: https://stackoverflow.com/questions/6949667/what-are-the-real-rules-for-linux-...
user avatar
24 votes

Wget: Is there a way to pass username and password from a file?

I'm surprised nobody mentioned the .netrc file. First create the file if it doesn't exists and set safe permissions: touch ~/.netrc chmod 600 ~/.netrc Then you can add the hostname, username and ...
user avatar
24 votes

Trying to add a new SQL Server user throws the error "is not a valid login or you do not have permission”

Before adding a user one must first create a login. Logins can only be created in the servers Security-folder (not in the databses Security). So the login can be created under <server>/Security -...
user avatar
  • 551
16 votes

How can I rename a Unix user?

NOTE: don't try this if your directory is encrypted! If this is your case you might want to check first: https://askubuntu.com/questions/107410/can-you-unencrypt-remove-encryption-from-a-user-home-...
user avatar
  • 261
14 votes

Using at sign (@) in usernames linux. Is it safe?

Using '@' in a username would make it impossible to use that username as the local-part of an email address, so I would say that is not a good idea.
user avatar
12 votes

How to automatically switch to home directory when switching user?

Try to us su - otheruser command which starts the shell as a login shell with an environment similar to a real login: it clears all the environment variables except TERM it initializes the ...
user avatar
  • 5,737
11 votes

How can I copy MySQL users table from one server to another?

The accepted answer (using mysqldump to backup mysql.user table) is a very dangerous approach if you are migrating to a new server version. I did that in the past (migrating users from Mysql 4 to ...
user avatar
  • 211
11 votes
Accepted

Support staff can reset some User passwords but not all?

Is it possible that they were once part of the Domain Admins group? If so, inheritance of permissions from OU would be disabled on them and you would have manually to reactivate it.
user avatar
  • 679
10 votes
Accepted

Testing Windows user accounts without actually logging into them?

Q:How can I test that their account is being correctly redirected without logging into it? A: You can't. You'll have to test it with the user present. There's no way to test whether or not GPO, ...
user avatar
  • 108k
8 votes
Accepted

Different ssh authentication policies for different accounts

You can use the Match User or Match Group directives: Match Group usergroup PasswordAuthentication no If you don't want to use groups, you can specify each user: Match User user1,user2 ...
user avatar
  • 108k
8 votes
Accepted

How to switch user given a UID?

Look up the username with the id command, e.g.: id -un 1003 Then put it together with command substitution: su - $(id -un 1003)
user avatar
7 votes
Accepted

Possible to name a computer the same as a domain?

Yes it will let you create a domain computer object with the same name as the domain. However, the default context (at the login screen) will be domain login, rather than local login and will require ...
user avatar
  • 158
7 votes

Support staff can reset some User passwords but not all?

This is by design. Generally, lower-tier support staff (even secondary privileged accounts) should not have the ability reset passwords of higher-tier adminstrative accounts. This is viewed as a ...
user avatar
  • 1,621
6 votes

How to create linux account with useradd without creating mail spool

I'm setting up a Docker image with Alpine and shadow package and got the same error. To avoid this "Creating mailbox file: No such file or directory" error I had to add the following inline ...
user avatar
6 votes

Command line active directory query email address for username

If the email that you want is also the User Principal Name, you can get it with whoami /upn However, this only works to get the email of the current user, not any user as the question originally ...
user avatar
  • 161
6 votes

VPN to a customer's site locking out my local AD account

Windows 7, by default, configures its L2TP VPN Connections to use their credentials for all subsequent authentication attempts after the VPN is connected. This works well for some situations, but for ...
user avatar
  • 166
6 votes
Accepted

Active Directory User Attribute List

The short answer is that there are only really a couple attributes that are intended for cosmetic metadata on a user account like description and info. Even the extensionAttributeX ones aren't really ...
user avatar
  • 16.4k
6 votes

How to enable ssh access without public/private keys?

You need to add PasswordAuthentication yes to your config file in /etc/ssh/sshd_config Once you have that added, you'll need to reload your SSH daemon, using sudo systemctl restart ssh or ...
user avatar
5 votes

Any difference between DOMAIN\username and username@domain.local?

The slashed format (DOMAIN\username) is actually the NetBIOS equivalent of the domain's DNS name (domain.mycompany.local). The NetBIOS name is limited to 15 characters and cannot contain dots, ...
user avatar
5 votes

What's the best way to see logged in users in Windows Server 2012?

"quser" command will give you the active now users the same result will give you the "qwinsta" command
user avatar
5 votes

PowerShell - finding users who are Inactive AND not disabled

The Search-ADAccount does not accept a parameter -Filter. Please see the Technet docs or Get-Help Search-ADAccount for a list of supported parameters. You can pipe the results of the search to Where-...
user avatar
  • 24.1k
5 votes

Samba user login

I finally manage to solve the problem. Using "pdbedit -L" I found that names containing Swedish characters didn't display properly. And after changing them with "pdbedit -r --fullname" it now works. I ...
user avatar
5 votes
Accepted

Users in Administrators group cannot perform admin tasks with PowerShell remoting only administrator can

This behaviour is by design, but can be disabled by changing a registry setting. In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System find or create the DWORD value ...
user avatar
5 votes

Deny RDP access to specific server from a particular user via GPO

You can use Group Policy to deny the user the right to log on to the server(s) via RDP as shown in the image.
user avatar
  • 108k
4 votes

What's the best way to see logged in users in Windows Server 2012?

Get-WMIObject -class Win32_ComputerSystem -ComputerName 192.168.1.9 | Select-Object UserName where 192.168.1.9 is the IP of the server
user avatar
4 votes

What does the Windows 7 local group Power Users actually do?

Power Users also allows an account to create shares. I tested it by creating shares in a cluster with new-smbshare command where I only added the domain account to Power Users. Without being in Power ...
user avatar
4 votes

What does the Windows 7 local group Power Users actually do?

Not quite true - if you use Office 2016/O365, all macros are disabled until you are at least a power user. You can enable anything you like and there is no error - it just doesn't work. But after I ...
user avatar
4 votes

Count of Unix users: how many is too much?

Ahh, this hearkens back to the good old days, when Unix systems were (nearly) the exclusive domain of universities and large enterprises, and Linux - with a version number starting with 0 - was almost ...
user avatar
4 votes
Accepted

PowerShell - finding users who are Inactive AND not disabled

Filter it the other way?: Search-ADAccount -UsersOnly -AccountInactive -TimeSpan 30.00:00:00 |where {$_.enabled}
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible