chmod 4755 /usr/bin/smbmount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a Redhat 8 machine, and another person in my department has one
as well.  Almost identical Dell PCs.  

This user wanted to smbmount a directory as a regular user, but only
knew how to do it using mount -t as root.  I tested some stuff on my
local machine:

[jonesy@newhotness tmp]$ smbmount //newfs/jonesy /tmp/test
Password:
smbmnt must be installed suid root for direct user mounts (30252,30252)
smbmnt failed: 1
[jonesy@newhotness tmp]$ su
Password:
[root@newhotness tmp]# which smbmnt
/usr/bin/smbmnt
[root@newhotness tmp]# ls -l /usr/bin/smbmnt
-rwxr-xr-x    1 root     root       554129 Aug 28 12:03 /usr/bin/smbmnt
[root@newhotness tmp]# chmod 4755 /usr/bin/smbmnt

This worked well - I was now able to use smbmount as a user to mount
directories.  I also had to perform the above task to smbumount in order
to unmount the directory.  

So up to the user's office I go - I change the permissions exactly like
I did on my Psyche box, and something different happened. I got an error
saying: "libsmb tool MUST NOT be suid root".  WTF???  So I changed the
perms back, and tried again.  This time, I got the old "smbmnt must be
installed suid root for direct user mounts" error.  

What gives?  
Thanks for any advice.
-- 

Brian K. Jones
System Administrator
Dept. of Computer Science, Princeton University
jonesy@cs.princeton.edu
http://www.linuxlaboratory.org
http://phat.sourceforge.net
Voice: (609) 258-6080



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux