LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 11-13-2009, 08:19 PM   #1
lilmike
Member
 
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57

Rep: Reputation: 15
Unhappy 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.
 
Old 11-13-2009, 08:32 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

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

Evo2.
 
Old 11-13-2009, 08:37 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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 08:42 PM.
 
Old 11-13-2009, 11:13 PM   #4
lilmike
Member
 
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57

Original Poster
Rep: Reputation: 15
Smile

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some help on bash script to compare /etc/passwd to locked users rhbegin Linux - Software 8 11-11-2009 12:55 PM
Hyperactive alias overrides all command line flags. philwynk Linux - Newbie 3 02-04-2008 07:04 PM
How to compare the output of a command with a string? daYz Programming 2 12-31-2006 09:36 AM
command to compare lines in a file? wgato Linux - Newbie 4 12-17-2006 08:55 AM
ogging web statistics of terminal users asjapulk Linux - Security 0 01-14-2005 11:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration