Weird SUID issue


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Weird SUID issue
# 8  
Old 11-17-2010
Quote:
Originally Posted by achenle
There's probably a difference in the mounting or sharing options on the two file systems.
I am doubting the same, can somebody help me how to figure that.

I am not root.

@ctsgnb
You missed my earlier post. It has to do something with the underlying filesystem.

Parent directory has open permissions.
# 9  
Old 11-17-2010
filesystems do not have protections per se. A filesystem can be mounted NOT TO ALLOW setuid, for example.

What OS? And what FStype(s)?

It sounds like your problem is that.
Show the output of
Code:
cat /etc/mnttab

# 10  
Old 11-17-2010
In post #5 the files call "Test" have different inodes and are in different filesystems. Also mysteriously the SUID and SGID permissions which were present in on one version of the file in post #1 have gone.
Is this actually question about copying files? A non-root user cannot copy SUID and SGID permissions.
# 11  
Old 11-17-2010
Don't have this file.
Using FreeBSD
What are my other options?

@methyl
The mysterious disappearance of permissions was because i printed the output before the SUID operation.
Yes, both Test files are on different filesystems but same file.

That's why it looks to me like filesystem issue.

@Jim
A filesystem can be mounted NOT TO ALLOW setuid
How?
Don't have knowledge of filesystem, how do i find which is this?
# 12  
Old 11-17-2010
BSD has /etc/fstab

which will have that information.
# 13  
Old 11-18-2010
Thanks
Will get back after some analysis

---------- Post updated at 08:50 PM ---------- Previous update was at 08:08 AM ----------

Thanks everybody for the support.

Got in touch with IT team & they said the filesystem needs to be tweaked for that.
Curious to know what are these permissions, any ideas folks Smilie
# 14  
Old 11-18-2010
Hi.

One possibility:
Code:
             nosuid  Do not allow set-user-identifier or set-group-identifier
                     bits to take effect.  Note: this option is worthless if a
                     public available suid or sgid wrapper like suidperl(1) is
                     installed on your system.  It is set automatically when
                     the user does not have super-user privileges.

-- excerpt from man mount, q.v.

This for OS, ker|rel, machine: FreeBSD, 8.0-RELEASE, i386 ... cheers, drl
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Weird issue - *ksh script not recognized when being called

HI Team - I'm running into a weird issue when trying to call a .ksh script. In my shell script, I'm using the following command to call my environment file: cd /hypbin/test ./_env.ksh But it's saying not found. Permissions are set correctly, shebang is set but I'm unsure why it's not... (5 Replies)
Discussion started by: SIMMS7400
5 Replies

2. UNIX for Dummies Questions & Answers

Difference between inbuilt suid programs and user defined root suid programs under bash shell?

Hey guys, Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries. However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Discussion started by: syncmaster
2 Replies

3. Shell Programming and Scripting

Weird issue in converting XLSX to TXT

Hi Guys, I have used Perl scripting to convert XLSX file to TXT file using Perl module Spreadsheet::XLSX. I processed one XLSX file having one column and 65k rows of data . Strangely ,It is merging data for every 2047 row and I could see data in TXT file as Ex: Suppose in XLSX file ,if... (2 Replies)
Discussion started by: Rajk459
2 Replies

4. Shell Programming and Scripting

weird equal variable issue

I run this #!/bin/bash cron=$(ps aux | grep crond | grep -v grep | grep -o crond| uniq) echo "cron :$cron:" if ; then echo "OK: crond service running fine on `hostname`" exit 2 else echo "CRITICAL: crond service not running on `hostname`" exit 0... (2 Replies)
Discussion started by: anil510
2 Replies

5. AIX

Weird nfs issue after TL upgrade

We recently upgraded 2 of our AIX 6.1 servers from TL4 to TL5. Both servers are on the same p7 780 frame, installed at the same time from the same image. Both servers are mounting the same nfs share after reboot what worked perfectly fine until the upgrade. Since the patching, one of the two... (5 Replies)
Discussion started by: zxmaus
5 Replies

6. Shell Programming and Scripting

weird issue about h, g, x in SED

I have a file called merge2.t: Hi Hello how are you. </Endtag> <New> I am fine.</New> This is a test. freelong how Here is the SED: sed -n ' /<\/Endtag>/ !{ H } /<\/Endtag>/ { x p } (4 Replies)
Discussion started by: freelong
4 Replies

7. HP-UX

Weird Issue with crontab.

Hello all, Normally I'm pretty comfortable with crontab, changing and updating (done it many-a-time). But in the last two days I've been pulling my hair out over the following... Details of OS: HP-UX mdirect B.11.23 U ia64 2587410573 unlimited-user license Issue: Execute a script (very... (3 Replies)
Discussion started by: Cameron
3 Replies

8. UNIX for Advanced & Expert Users

Weird Awk issue

Hi All, a bit of a weird one here. I'm trying to pass a variable into an awk command, and I keep getting an error. I have the line nawk -F"," -v red=$random_variable '{print $red}' $w_dir/$file_name > $w_dir/${column_name} that keeps failing with the error nawk: can't open file {print... (17 Replies)
Discussion started by: Khoomfire
17 Replies

9. UNIX for Advanced & Expert Users

weird domain issue.

OK so i have a virtual server where i store files. one day i tied to login and i couldn't connect to my sevrer so i logged into my ssh and checked to see if the process was running. proftp was not. I then tried to start it manually and got the error below. Now the domain listed there is not mine... (2 Replies)
Discussion started by: thirddegreekris
2 Replies

10. UNIX for Advanced & Expert Users

Weird SSH issue

hey all, I guess I'm the newbie on these boards, anyways, hello. I recently became the admin for a few Solaris machines, and I have recently discovered an issue with SSH on one of my machines. On one of my machines, I can only SSH into the machine as root. I have tried the newest version... (6 Replies)
Discussion started by: AKM
6 Replies
Login or Register to Ask a Question