su command difference between unix and linux


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers su command difference between unix and linux
# 1  
Old 03-03-2010
su command difference between unix and linux

Hello all
the su with -l option is running normal with linux but when i try to run it on unix AIX 5.2.7 it's not working with -l option
any help
# 2  
Old 03-03-2010
It may the su version problem . Please check whether both the linux and unix AIX 5.2.7 using the same version.
# 3  
Old 03-03-2010
Have you checked the man page for su? Because it doesn't say anything there about a -l switch.

The -l that Linux supports is something borrowed from BSD, and just doesn't appear in any non-BSD inspired system (like AIX or HP-UX)
# 4  
Old 03-03-2010
how to get the su version on aix ?
# 5  
Old 03-03-2010
Just use:
Code:
su - username

Should be the same in unix (incl. AIX) and Linux. (Exactly the same effect as "su -l username" in Linux).
# 6  
Old 03-07-2010
i already work with su - user name on AIX but i'm adding an alias for su in the .profile so i have to add the -l flag .
can any one tell me why su -l is not working on AIX
note : i already installed sudo from AIX toolbox CD but still the same problem
# 7  
Old 03-07-2010
Read the whole thread again. The -l flag is something the Linux variant of su borrowed from BSD, and isn't available on any system that didn't at any time borrow from it too. Those include HP-UX and AIX.

In short:There is no way for a current version of the native su program on AIX to support the -l switch without possibly ripping up a glaring, warranty-voiding security hole.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Difference between UNIX and Linux

hi experts please tell me the real difference between unix and linux at kernel structure (1 Reply)
Discussion started by: linurag
1 Replies

2. UNIX for Dummies Questions & Answers

difference between unix and linux

Hi I am new to linux I have dout waht is the difference between UNIX and LINUX Is there any soft for insatallation for UNIX OS Thanks (0 Replies)
Discussion started by: sanjaya
0 Replies

3. Shell Programming and Scripting

difference in unix vs. linux sort

Hi, I am using some codes that have been ported from unix to linux, and now the sorting no longer results in the desired ordering. I'm hoping to find a way to mimic the unix sort command in linux. The input file is structured the following: $> cat file.txt... (6 Replies)
Discussion started by: aj.schaeffer
6 Replies

4. Programming

Difference between cp and mv linux command

Hi, I am facing one problem only with mv command not with cp command. I have a test program #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/mount.h> #include <fcntl.h> #include <errno.h> int sync_file(char *file) { FILE *fp=NULL;... (6 Replies)
Discussion started by: dharshini123
6 Replies

5. AIX

difference between AIx and Linux and Unix

Sir , Can any body explain the difference between linux , Unix and AIx on command Reference all the command on AIx and unix is same or not please reply (2 Replies)
Discussion started by: arif185
2 Replies

6. UNIX for Advanced & Expert Users

What is the difference between Unix & linux

:confused: Hi All Can anyone help me in finding the answer of the question mentioned below. What is the difference between Unix & linux ? Thanks in Advance to all CSaha (1 Reply)
Discussion started by: csaha
1 Replies

7. UNIX for Dummies Questions & Answers

Difference between UNIX and Linux

OK, I've used various versions of UNIX(Solaris, HPUX, etc..) over the years. Now the organization I work for is leaning towards more Linux based systems(Redhat, Suse, etc..) I do see differences in in comands and how to accomplish basic adminstration, but nothing mind blowing. So, what is it... (5 Replies)
Discussion started by: pbonilla
5 Replies

8. UNIX for Dummies Questions & Answers

difference between unix and linux?

Ok, I'm confused. Can someone answer these (stupid) questions please for me? 1. What is the difference between unix and linux? 2. Is FreeBSD a unix distribution? 3. If not, then what is Unix? I actually gone to Unix.com because I thought this is it's official website where I could download... (1 Reply)
Discussion started by: RellioN
1 Replies

9. Programming

Difference Between Unix and Linux Envoriment

This may/may not be a long answer to a short question. I am learning the C programming language at home.I have seen some good books on the UNIX programming enviroment.However, there were a few books that hinted towards the Linux programming enviroment.Is there any difference between the two as... (1 Reply)
Discussion started by: perrylx
1 Replies
Login or Register to Ask a Question