I am trying to run a script in another partition of the hdd
the file name is new
I ranboth as normal and as sudoCode:chmod +x new
but still get this error....
Code:-bash: ./new: Permission denied
I am trying to run a script in another partition of the hdd
the file name is new
I ranboth as normal and as sudoCode:chmod +x new
but still get this error....
Code:-bash: ./new: Permission denied
For All Windows Migrants:http://linux.oneandoneis2.org/LNW.htm
Does it have the noexec flag set?
What's the output of this:
Code:mount
Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide
Tomorrow's an illusion and yesterday's a dream, today is a solution...
How are you initiating the script? Is the directory that you are in, in your environmental variables? These tell Linux what directories to look for the programs or scripts you want to run in.
post back if you need my help figuring that out.
Are you running chmod as su (root) or are you in the sudoers list?
Have you tried?
Code:sudo chmod 755 fileCode:sudo chown usernamehere fileCode:man chownCode:man chmod
Google Will Rule the world I can see it.!
here is the output of mount
the script needs to be run on /dev/sdc1Code:/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) proc on /proc type proc (rw,noexec,nosuid,nodev) none on /sys type sysfs (rw,noexec,nosuid,nodev) fusectl on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) none on /dev type devtmpfs (rw,mode=0755) none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) none on /dev/shm type tmpfs (rw,nosuid,nodev) none on /var/run type tmpfs (rw,nosuid,mode=0755) none on /var/lock type tmpfs (rw,noexec,nosuid,nodev) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) gvfs-fuse-daemon on /home/srinivas/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=srinivas) /dev/sdc1 on /media/SriZ Drive type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
For All Windows Migrants:http://linux.oneandoneis2.org/LNW.htm
For All Windows Migrants:http://linux.oneandoneis2.org/LNW.htm
NTFS doesn't support Linux file permissions, so you need to set them at mount time for them to work. After a NTFS partition is mounted, chmod, chown, etc. will not have any effect.
Try reading the following: HOWTO: Mount NTFS partitions with specific ownership/permissions
http://xkcd.com/293/
There are 10 kinds of people in this world: Those who understand ternary, those who don't, and those who confuse it with binary.
Bookmarks