Stciky bits


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Stciky bits
# 1  
Old 04-08-2002
Stciky bits

Help!!

I am trying to give users the ability to manipulate a file via a script that was written but I don't want the users (group of Sterling) to have write permission (for fear that it'll get deleted by accident) when using regular shell commands. I'm thinking that this is accomplished via Sticky bits. I've searched the man pages along with my Unix in a nutshell book and can't really find what I'm looking for. I'm not sure if I put the sticky bit at the file, script or directory level or all of the above. Can you guys take a look and see what I'm doing wrong?

Additionally, I am on AIX 4.3 (if that makes a difference)

The file I am wanting to protect Except when they run the script:

-rw-r--r-- 1 cdunix sterling 34918 Apr 08 09:49 univfile

The permissions on that directory are:
drwxrws--- 2 cdunix sterling 512 Apr 08 10:18 flatfile


Current permissions of the script that the user would be running:

-rwSrwsrw- 1 cdunix sterling 9174 Apr 08 09:47 addchgdel.sh

The permissions on that directory are:
drwxr-sr-x 5 cdunix sterling 1536 Apr 08 10:07 utils


Thanks in advance for taking a look!
# 2  
Old 04-08-2002
Re: Stciky bits

Quote:
Originally posted by hedrict
Help!!

I am trying to give users the ability to manipulate a file via a script that was written but I don't want the users (group of Sterling) to have write permission (for fear that it'll get deleted by accident) when using regular shell commands.
The only options that I can think of are:
a) make the file group writeable, in which case they could delete it using shell commands
or b) Make your script which manipulates the file SUID, and make the file mode 600. Drawback to this is that SUID scripts can be used to gain shell command access if not programmed extremely carefully. (make it SUID-cdunix not SUID-root)
# 3  
Old 04-08-2002
There was a script recently posted that shows how to change the permissions only for execution of a script via SUID.

Do a search for stick bit or SUID or effective user. It was posted within the last 2 weeks.

Here it is. I found it.

https://www.unix.com/showthread.php?s...effective+user
# 4  
Old 04-09-2002
In that post you will see that I was unaware that any Unix that would execute a SUID script as SUID. In that example though, the poster was on Solaris, where it did work.

A good way to not only give the user this ability, but also to track it, would be to use "sudo".

Also, the suid bit and the sticky bit are two different things. You want suid, not sticky.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Where have all my Bits gone?

Hi there admins/moderators, I've just found that all my bits have vanished... both Savings and Checking accounts are showing '0' as the balance. I initially thought it was nefarious carry-on to blame but I can't see any evidence of a transfer out. Then I figured that bits had been... (3 Replies)
Discussion started by: Smiling Dragon
3 Replies

2. What is on Your Mind?

Use of bits.....

Hi Friends.. Can anyone explain me the usage of bits.... I am unable to understand ..... I've moved this to a more appropriate forum on the board. Please consider where you are posting. (2 Replies)
Discussion started by: bharat1211
2 Replies

3. What is on Your Mind?

Place Bits & Win Bits!!! - 17th Annual Satellite Awards

Ten movies have been nominated as best motion picture by the International Press Academy, presentation of the 2012 Satellite Awards will be held on 16th December at Los Angeles, CA. Place your bits here on one of the below nominated movie of your choice:- Argo ... (0 Replies)
Discussion started by: Yoda
0 Replies

4. UNIX for Dummies Questions & Answers

32 bits procesaor with 64 bits Solaris

people i have a problem i have a 32 bits sparc processor, and solaris 64 bits processor, i install a oracle data base 64 bits, but my oracle will not run because my processor is from 32 bits this is ok??, i know if i have x86 i cannot install a 64 bits operatin system in a 32 bits processor. ... (0 Replies)
Discussion started by: enkei17
0 Replies

5. Post Here to Contact Site Administrators and Moderators

Bits

My bits count is increasing and decreasing frequently. I haven't get infractions at present. But my bits count is getting increasing and decreasing frequently. Previously it was not like that. May know the reasons please? Thanks in Advance. (3 Replies)
Discussion started by: thillai_selvan
3 Replies

6. AIX

How to convert a partition usin 64 bits kernel to 32 bits kernel?

Hello there: I know that exist a procedure to convert an OS using 32bits kernel to 64 bits kernel. But, exist a procedure to convert an OS using 64bits to 32 bits kernel? Please help me. Regards. (2 Replies)
Discussion started by: GEIER
2 Replies

7. UNIX for Dummies Questions & Answers

Changing 24 bits to 8 bits display

Hello all, I was wondering if anyone can tell me how to change 24 bits depth display to 8 bits depth display for Sun Ultra1, running Solaris 8? THANKS in advance. I think that the command is ffbconfig, but it has nothing about depth. (4 Replies)
Discussion started by: larry
4 Replies
Login or Register to Ask a Question