LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   command to compare or see flags and statistics of users (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-compare-or-see-flags-and-statistics-of-users-769019/)

lilmike 11-13-2009 08:19 PM

command to compare or see flags and statistics of users
 
Hi,
I have a user who, as far as I can tell, has the same flags and stuff as another user.
The only problem is that this user cannot do ssome things that the other user can do.
This user cannot use a script that the other user can.
The only difference I can see is that one has his home in /muds/hunt/<username> and the other in /home/<username>.
One of the problems is that the script sees gcc as not being able to compile executables for one user, and not for the other.
So, I need a command to show me stats and flags for users, so I can see the differences between them.
Also, what is the command to change these flags.
Thanks,
-Michael.

evo2 11-13-2009 08:32 PM

It's probably best to post the script or at least the error message from gcc.

Evo2.

GrapefruiTgirl 11-13-2009 08:37 PM

You might want to try the `env` command as the user(s) in question, to compare environment variables and stuff like that; do this by using `su -` (note the trailing dash) to switch to the user in question. If you find an environmental difference that is causing the trouble, then you can arrange (export) the necessary variable(s) in the user(s) ~/.bash_rc or ~/.bash_profile (or whatever is the comparably appropriate location for an Ubuntu OS) or alternately, for a temporary override of an environment variable, use the `export` command to set the variable.

If you have an /etc/skel folder or file, that is where default environment gets determined for newly created users, so if you plan to create more new users who will be issued a 'skeleton' home directory structure, you might consider creating or editing the necessary .bash_profile or bash_rc file in there.

Good luck,
Sasha

lilmike 11-13-2009 11:13 PM

Thanks, but I found what was causing the problem, and I could've hit myself.
...
It was that he was not allowed to open enough files at the same time, in the pam file /etc/security/limits.conf
I figured it out, finally :).
-Michael.


All times are GMT -5. The time now is 08:35 AM.