Tag Info

New answers tagged

2

There was some corruption in my file system. I just booted system by inserting rescue disk and then checked file system with e2fsck, and restarted the system. This solved my issue.


0

No service accounts such as this are typically not configured to be logged into. You can see this if you look at the file /etc/passwd. You can also see it using the getent command. Example $ getent passwd saml saml:x:1000:1000:saml:/home/saml:/bin/bash Notice that my account is setup to use a shell, /bin/bash. Meanwhile a service account is not. $ ...


0

If you are not logged in/elevated as root, and are a "regular" user, you will need to provide the password for another user account. However, you may want to look into sudo to achieve what you are trying accomplish. You will likely need to consult with your sysadmin to properly set you up in the sudoers file in order to grant you the access you require.


0

You can make the shadow file readable by a dedicated group, such as "shadow", and have your application run setgid to that instead. This at least ensures that if your system is compromised it only can read the user database, and not every file in the system. However, your application will be unable to change the credentials of a process unless it is the ...



Top 50 recent answers are included
{"cc_re__cc_re__cc_by_sa_3_0": ["        <li><a href=\"http://area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"http://careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2014 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2014.4.18.1558\r\n            </div>\r\n                <div id=\"additional-notices\">\r\n                    Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group. <br>This site is not affiliated with Linus Torvalds or The Open Group in an"], "copyright__copyright__copyright": ["sysadmin to properly set you up in the sudoers file in order to grant you the access you require.\n\n\n0\n\nYou can make the shadow file readable by a dedicated group, such as \"shadow\", and have your application run setgid to that instead. This at least ensures that if your system is compromised it only can read the user database, and not every file in the system. However, your application will be unable to change the credentials of a process unless it is the ...\n\n\n\nTop 50 recent answers are included"]}