Hot answers tagged

120

Permissions are a pest. Basically, you need to make sure that all of those developers can write to everything in the git repo. Skip down to The New-Wave Solution for the superior method of granting a group of developers write capability. The Standard Solution If you put all the developers in a specially-created group, you can, in principle, just do: ...


75

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 ...


69

The data you are looking should not, by default, be located in "C:\Documents and Settings\Default User". That is the location of the default user profile, which is the template for new user profiles. Its only function is to be copied to a new folder for use as a user profile when a user logs onto the computer for the first time. If the service is ...


46

I'd be tempted to ask senior management just to send out a "remove and don't do it again" email - then you can do a monthly scan and give the management a list of those still doing it. It's not a technical issue so don't make it one.


41

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 ...


39

This has not been said, so I want to quickly add it. To ensure that permissions issues do not crop their ugly head, make sure to set the following on your git shared repository's config file: [core] sharedRepository = true This will ensure that your system's "umask" settings are respected.


39

SU to the user su - username and run kill -9 -1 as the user. Exit the shell and try the userdel -r username again. Or you can check for processes from the user using lsof -u username and kill the relevant PIDs. Or pkill -u username or pkill -u uid


35

see here : https://web.archive.org/web/1/http://techrepublic%2ecom%2ecom/5208-7343-0.html?forumID=101&threadID=307918&messageID=3065346 They suggest the wmic command which available on windows : WMIC /NODE: xxx.xxx.xxx.xxx COMPUTERSYSTEM GET USERNAME Will return the username currently logged into xxx.xxx.xxx.xxx or WMIC /NODE: ...


32

w


32

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 ...


32

Use the query user command Query User Command http://technet.microsoft.com/en-us/library/bb490801.aspx


31

When it comes down to it most of us are just systems administrators. We might be the ones to spot bad behavior and even sometimes called upon to help resolve situations. It is not our job to police or enforce employee behavior. That being said having strong tools at your company’s disposal to address behavior issues as they come up is critical. Once a ...


30

The command SHOW GRANTS [FOR user] is what you're looking for. See here for more detail.


29

There should be a status log you can look at to show you, mine is, for examle: cat /etc/openvpn/openvpn-status.log EDIT: As an alternative, adding the flag --management IP port [pw-file] or adding that same directive to your server.conf, for example: management localhost 7505 This would allow you to telnet to that port and offer you a list of commands ...


27

Don't forget to change the root password. If any user has UID 0 besides root, they shouldn't. Bad idea. To check: grep 'x:0:' /etc/passwd Again, you shouldn't do this but to check if the user is a member of the root group: grep root /etc/group To see if anyone can execute commands as root, check sudoers: cat /etc/sudoers To check for SUID bit, which ...


23

Here is the MySQL Documentation for SHOW GRANTS: SHOW GRANTS [FOR user] This statement lists the GRANT statement or statements that must be issued to duplicate the privileges that are granted to a MySQL user account. The account is named using the same format as for the GRANT statement; for example, 'jeffrey'@'localhost'. If you specify only the user ...


22

If you're doing it via T-SQL: Granting a Windows Login the ability to connect to SQL Server: CREATE LOGIN [Domain\User] FROM WINDOWS; or CREATE LOGIN [Domain\Group] FROM WINDOWS; If SQL Server-based login: CREATE LOGIN [LoginName] WITH PASSWORD = 'SomePassword'; After that, you can do one of two things. You can add it to the membership of the ...


21

Yes...because downloading porn is 100% safe. Running programs like metasploit won't ever crash a server. Because sending unsolicited emails won't raise question about the companies reputation and standards. And because installing unknown, third party software won't ever be malicious or cause security issues. IMO, if I was in your shoes I would want that ...


20

To see who is UID 0: getent passwd 0 To see who is in groups root, wheel adm and admin: getent group root wheel adm admin To list all users and the groups they are members of: getent passwd | cut -d : -f 1 | xargs groups


19

I was looking for a solution, came across this post, and then later found one! I'd thought I'd actually offer a solution so others can benefit. Logging in and out is so 1995. Taken from: https://arkaitzj.wordpress.com/2010/03/08/linux-add-user-to-a-group-without-logout/ So if you needed to get permissions for the cdrom group you just added your user to: ...


18

When adding a user to a new group, the user must log out and log back in for it to take affect. While a reboot will accomplish that, it should not be required.


18

The profile path is the location of the user's user profile. The "Home" path may be the same, but it could be set to another location (via the user account properties). The home path is a bit of a vestigial thing. It dates back to Windows NT, prior to the 'My Documents' directory. I believe the original intent was to provide a "Home Directory" similiar to ...


18

Whatever you do, you are going to need management support for it. IT can rarely set its own policies without this support (especially if your policy affects management - like if they are also storing mp3s on the server...) Users generally get upset when things stop working the way they always have as well so you are going to need to communicate with them ...


16

Adding the - option affects your environment behavior. For all practical purposes, the environment is completely reset. In general, you likely want to use su - instead of plain su. From the man page: -l Simulate a full login. The environment is discarded except for HOME, SHELL, PATH, TERM, and USER. HOME and SHELL are modified as above. ...


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

Depends what you mean 'full permissions'. If you want a user to have full read and write access to all files and directories in that directory, then this will help: chown -R username directory chmod -R u+rX directory The first command makes the user own the directory. The second command gives them full read and access permissions. The r gives read ...


15

The Git User Manual describes how to share a repository in several ways. Exporting via the Git Daemon. Exporting via HTTP. CVS/SVN style, a single shared repository where developers push/pull. More complicated, though feature-full ways to share repositories are: Gitosis GitHub (or GitHub Firewall Install) We use GitHub for a team of 6 developers.


15

You could try using smem (see ELC2009: Visualizing memory usage with smem for more information). In particular, sudo smem -u should give you the information you want.


15

Sorry, did not notice you do not want to use Sysinternals. That is now a Microsoft technet tool, any specific reason to not use it? I have preferred Sysinternals over other third party tools before Mark Russinovich moved into Microsoft. The Microsoft Sysinternals Suite has a tool called Psloggedon, psloggedon.exe -l There is also NBTSTAT, nbtstat -a ...



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