 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

11th September 2012, 09:04 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Brazil
Posts: 6

|
|
|
bash: /home/celso/bin/suvts: Permission denied
Hi,
I upgrade my box from Fedora 16 to Fedora 17.
Now, all my scripts, that runned at F16 is not working ....
Detail, they are in a NFS File system.
sfw3:/home4 /home4 nfs exec,dev,suid,rw,noauto,user 0 0
I already tried remount the FS
mount -o remount,exec /home4
When i execute
bash test.sh it runs.
Any ideia ?
Thanks in advance
Celso Suzuki
|

11th September 2012, 10:15 PM
|
|
Official Gnome 3 Sales Rep. (and Adminstrator)
|
|
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,707

|
|
|
Re: bash: /home/celso/bin/suvts: Permission denied
What does "ls -l /home/celso/bin/suvts" actually list the permissions as?
|

12th September 2012, 03:55 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Brazil
Posts: 6

|
|
|
Re: bash: /home/celso/bin/suvts: Permission denied
[celso@sfw06 ~]$ ls -l /home/celso/bin/suvts
lrwxrwxrwx 1 celso celso 6 Set 7 2007 /home/celso/bin/suvts -> CnxRem
[celso@sfw06 ~]$ ls -l /home/celso/bin/CnxRem
-rwxrwxr-x 1 celso celso 3375 Jul 13 2011 /home/celso/bin/CnxRem
[celso@sfw06 ~]$ ls -l /home/celso|grep bin
lrwxrwxrwx. 1 celso celso 16 Jun 3 2011 bin -> /home2/celso/bin
[celso@sfw06 ~]$ ls -l /home2/celso/|grep bin
drwxr-xr-x 2 celso celso 12288 Ago 16 17:00 bin
[celso@sfw06 ~]$ ls -l /|grep home2
drwxr-xr-x 224 root 513 12288 Set 5 09:11 home2
sfw31.dti.digitro.com.br:/home3/ nfs 146561600 137402816 1714496 99% /home2
[celso@sfw06 ~]$ suvts 102
bash: /home/celso/bin/suvts: Permission denied
[celso@sfw06 ~]$ more /home/celso/bin/suvts
#!/bin/bash
# Script geral para conexao remota
# Atende ssh e rlogin
################################################## ########
User=axs
User2=celso
Log=rlogin
[celso@sfw06 bin]$ xx
bash: ./xx: Permissão negada
[celso@sfw06 bin]$ more xx
#!/bin/bash
echo "Teste"
---------- Post added at 11:55 AM ---------- Previous post was at 09:09 AM ----------
in file /etc/fstab
sfw31.dti.digitro.com.br:/home3 /home2 nfs exec,dev,suid,rw,noauto,user 0 0
|

12th September 2012, 09:16 PM
|
|
Registered User
|
|
Join Date: Dec 2006
Posts: 1,717

|
|
|
Re: bash: /home/celso/bin/suvts: Permission denied
and please don't use rlogin for conexao remota!
|

13th September 2012, 12:17 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Brazil
Posts: 6

|
|
|
Re: bash: /home/celso/bin/suvts: Permission denied
[celso@sfw06 SVN]$ ls -l /bin/bash
-rwxr-xr-x 1 root root 902036 Jul 24 05:38 /bin/bash
The bash works.
If I ran the script at local directory, it works.
Only when I ran at NFS FS it didn't work .....
|

13th September 2012, 12:58 PM
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,104

|
|
|
Re: bash: /home/celso/bin/suvts: Permission denied
Having dev,suid on an NFS mount is opening a security hole by allowing other systems to create setuid files (and device references) that are not under the control of the system.
Devices are a bigger problem as they may allow device control that is not allowed by the system.
|

13th September 2012, 01:31 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Brazil
Posts: 6

|
|
|
SOLVED - Re: bash: /home/celso/bin/suvts: Permission denied
Hi,
I found the problem.
I mount the FS with these options exec,dev,suid,rw,noauto,user to let me mount without be root.
I tried to mount manually, as root, and the scripts run. So i tried as my user, and it didn't run.
So I changed the user option to the first option and it works !!
The options are now user,exec,dev,suid,rw,noauto
Strange ...
But it works .....
Thanks every body !!!
|

13th September 2012, 02:29 PM
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,104

|
|
|
Re: bash: /home/celso/bin/suvts: Permission denied
And you still have the security problems with dev and suid
---------- Post added at 09:29 AM ---------- Previous post was at 08:56 AM ----------
FYI: I did a little checking in the manpage for mount:
Code:
users Allow every user to mount and unmount the filesystem. This
option implies the options noexec, nosuid, and nodev (unless
overridden by subsequent options, as in the option line
users,exec,dev,suid).
These defaults are for safety, though frequently the "noexec" is overridden.
|

13th September 2012, 06:47 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Brazil
Posts: 6

|
|
|
Re: bash: /home/celso/bin/suvts: Permission denied
Hi,
Ok, I'll change the line of fstab.
Thanks for the tip.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 21:40 (Tuesday, 21-05-2013)
|
|
 |
 |
 |
 |
|
|