Difference between s & S in setuid in UNIX


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Difference between s & S in setuid in UNIX
# 1  
Old 01-29-2008
Difference between s & S in setuid in UNIX

Hi,

what is the difference btwn s and S in setuid , access permissions.

I have to make to change the access permissions of a file to rwsr_xr_r

but if i type in 4655 it changes the file to rwSr_xr_r .

How can I make this change ?
Please suggest.
# 2  
Old 01-29-2008
To make this setuid executable you have to say,
chmod 4700 executable

Also,
s - setuid and executable
S- setuid and not-executable,


Thanks
Nagarajan G
# 3  
Old 01-29-2008
Thanks a lot

Thanks a lot. It worked.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

What keeps me from abusing setuid(0) and programs with setuid bit set?

Just learning about the privilege escalation method provided by setuid. Correct me if I am wrong but what it does is change the uid of the current process to whatever uid I set. Right ? So what stops me from writing my own C program and calling setuid(0) within it and gaining root privileges ? ... (2 Replies)
Discussion started by: sreyan32
2 Replies

2. UNIX for Dummies Questions & Answers

Difference between & and nohup &

Hi All, Can anyone please help me understanding what the difference between the below two? 1. script.sh & 2. nohup script.sh & (2 Replies)
Discussion started by: Anupam_Halder
2 Replies

3. UNIX for Dummies Questions & Answers

setuid & sticky bit

Can anyone explain me difference between setuid and sticky bit? and also between setuid and chown? (3 Replies)
Discussion started by: kkalyan
3 Replies

4. Linux

What is the difference between flavour & distribution.

Hi All, Can anyone tell me the difference between flavour & distribution? As we say that - AIX, Linux, Solaris etc are the flavours of Unix & fedora, ubuntu, suse etc are the distributions of linux. Can anyone explain me, why it is called so. Thanks in advance. Amol (6 Replies)
Discussion started by: Amol21
6 Replies

5. Solaris

Difference between sudo & RBAC

Hello Everybody I would like to know any major difference between sudo & RBAC as I am bit familiar with RBAC but not with sudo (2 Replies)
Discussion started by: girish.batra
2 Replies

6. UNIX for Advanced & Expert Users

Difference between <stdin> & terminal

Hi, What's the difference in taking inputs from <stdin> and terminal. When by default <stdin> points to terminal itself. Thanks (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies

7. UNIX for Dummies Questions & Answers

Difference between && and -a

I've come stuck when I was making sure the hour of the day was not been two times so that the rest of the script could not be executed. Seems simple enough. I used the -a to join the two conditions together and it would run if the conditions was t/f ( it is only supposed to run if was t/t).... (3 Replies)
Discussion started by: spookyrtd99
3 Replies

8. Shell Programming and Scripting

Difference between ./ & . ./ ???

For executing a shell script, i know 2 ways: 1) using sh command 2) making the script file executable & then use ./ But i can across another way for executing the scripts... using ". ./" I tried this way.. but i was able to understand the difference between "./" and ". ./" I would be very... (2 Replies)
Discussion started by: abishekmag
2 Replies

9. 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

10. UNIX Desktop Questions & Answers

what is the difference between Unix & linux, what are the advantages & disadvantages

ehe may i know what are the difference between Unix & Linux, and what are the advantages of having Unix as well as disadvantages of having Unix or if u dun mind i am dumb do pls tell me what are the advantages as well as the disadvantages of having linux as well. thanks (1 Reply)
Discussion started by: cybertechmkteo
1 Replies
Login or Register to Ask a Question