Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-13-2009, 09:19 PM
|
#1
|
Member
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57
Rep:
|
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.
|
|
|
11-13-2009, 09:32 PM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
It's probably best to post the script or at least the error message from gcc.
Evo2.
|
|
|
11-13-2009, 09:37 PM
|
#3
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
|
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
Last edited by GrapefruiTgirl; 11-13-2009 at 09:42 PM.
|
|
|
11-14-2009, 12:13 AM
|
#4
|
Member
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57
Original Poster
Rep:
|
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 03:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|