Security :: File Permission - Read An Execute Only File

Dec 16, 2009

Suppose I have a binary program with only execute permission enabled for the current user. How (in general) would I be able to obtain a core dump of the file? I think I have read it somewhere but I want to know if there are more ways of doing it.

View 1 Replies


ADVERTISEMENT

General :: Windows Access The File From Ubuntu Got Read Only Even Though Have A Full Permission To Read, Write And Execute The File?

Feb 4, 2010

What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.

View 1 Replies View Related

General :: File Permission. Write And Execute Only?

Jan 11, 2011

Is there any use if a file has only write and execute permission and not read permission?

View 2 Replies View Related

General :: Changing File Permission To Execute?

May 12, 2011

My shell script runs from the command line, but fails in cronjob. /bin/sh: asper.sh: Permission denied

-rw-r--r-- asper.sh I guess the permission should look like '-rwxr-xr--' How can I change the permission to be like that?

View 2 Replies View Related

Server :: Saving A File Removes The Group Execute Permission?

May 23, 2011

Here are some example files that are shared through samba:

-rwxrwx--- user1 group1 file1.txt
-rwxrwx--- user1 group1 file2.txt

When user2 (who is also a member of group1) edits file2.txt the permissions change:

-rwxrwx--- user1 group1 file1.txt
-rwxrw---- user2 group1 file2.txt

user1 then has issues opening the file. This also goes for new files that are created (they are missing the group execute permission).

I have set the option "create mask = 0770" in my smb.conf. Without this set, permissions default to something like -rwxr--r--

View 1 Replies View Related

Fedora Servers :: Apache Execute Permission To Save Uploaded File?

Sep 10, 2009

here is the upload form:

<form enctype="multipart/form-data" action="uploader.php" method="POST">
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>

[Code]...

View 1 Replies View Related

General :: Read And Execute Permissions For Executing The File

Mar 2, 2010

Binary files need only execute permission to execute. No read permission is required. But all executable files must be read by the kernel into main memory before executing. Also script files need both read and execute permissions for executing the file.

View 5 Replies View Related

Red Hat :: Change The Owner Permission Of File As "read Only" When The File Is Rcp?

Nov 25, 2010

I am trying to change the owner permission of file as "read only" when the file is rcp remote copy ) from server to another for security reason. Any way to change to permission as readonly access for owner and group ( 550 )when transfer the file using the rcp command ? I tested but still retain the original permission as source file.

Version : RHEL 5.2
Command : #rcp(local file)(/destinationserver/
/folder/file)

[code]....

View 3 Replies View Related

General :: Get Samba Read + Execute Permission

Feb 20, 2010

i need 2 king of permission 1 is full access and other is read+exceute. it can be by ip by userid or by group. as i am beginner try to find such example cant find it so far see below my smb.conf file

[Code]....

View 1 Replies View Related

OpenSUSE :: Dolphin Doesn't Care About File Read-only Permission?

Jun 10, 2011

I'm running oS 11.3 KDE 4.6.3. If I try to delete a read-only file in the terminal I can, but get a warning message I have to confirm:

[Code]...

In Dolphin the file is simply sent to trash, no warning. I couldn't find a setting in Dolphin configuration options to change this. I do have "Ask for confirmation. when moving files and folders to trash" unchecked, but even so, if the file is read-only?

View 9 Replies View Related

General :: Using TCPDump To Read Test File - Permission Denied

Oct 21, 2010

Trying to use tcpdump -r TEST, and get permission denied, even though I am logged in as root or super user. Tried using the "chmod a+rw TEST" (any other file for that matters, yes it came from another source) and get permission denied.

View 4 Replies View Related

General :: Difference Between Directory Execute And Read Permission?

Mar 3, 2010

I was wondering what is the difference between directory execute and read permission?Also, how do I recursively remove executable permission from a dir, but just apply it to normal files?

View 6 Replies View Related

Fedora Security :: SELinux Denaied For Changing Permission Of File?

Mar 27, 2011

I couldn't able to change file permission of files residing under /media/* Under /media all the NTFS partitions are mounted manually (gnome GUI) using root password. File properties of file under those NTFS partition shows SELinux context is "fusefs_t". I guess this is prevention from changing permission of file. How can I over come this?

View 9 Replies View Related

Ubuntu Security :: Write Permission To Mounted File System?

Feb 1, 2010

I just found that I could perform write operation using a normal user account to a file system I mounted with the commands as followed:

sudo mount -t ntfs /dev/sda1 /mnt/disk/

This is the corresponding entry in the output of "mount" command:
/dev/sda1 on /mnt/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

As far as I remember, when using a normal user account, I had to use "sudo" to perform any write operations (mkdir, rm, etc) to a device mounted using "sudo". But now it seems to be changed.

Do I remember wrong, or did Karmic have any updates change this setting? (I never manually changed user settings, except that I added a root user, but I never used it.)

OS: Karmic(up2dated)
Kernel: Linux stephen-laptop 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux

View 4 Replies View Related

Security :: Read Password From AES Encryption From Txt File?

Jan 18, 2011

am fiddling around using an AES encrypted password which is stored in passwd.txt:cat ../passwd/passwd.txt
{AES}yTMWTrdbuPtCxikvv5udVDTQ70anBVVKvP+GPQEH1RY=Yet I like to interpret this password on the command line using svn checkout, so I do not have to type in my password ( which is visible on the command line):Exporting the variable SVNPASS reading it from the passwd.txt ( export SVNPASS=`cat <../passwd/passwd.txt`) won't work obviously as it interprets it as "text", so my question is, if there is a proper way to interpret this stored AES password so I can read it from the file?The alternative is to type in the password on the command line, but this needs to be invisible eitehr showing #, * or "hidden".
the last option is described: http://www.tech-recipes.com/rx/278/h...-shell-script/

View 5 Replies View Related

Fedora Security :: Make The Root File System Read-only

Jun 23, 2009

I am interested in making the root file system is read-only. I've moved /var and /tmp file systems to another partitions. There are two files in the /etc directory that need to be writable.

These are:

I've moved this files to /var and linked it. I've added command to the /etc/rc.d/rc.local file:

That's it. Are there other solutions to make the root file system is read-only?

View 1 Replies View Related

Security :: Remove Read/write/execute Permeation From Directories In '/' For 'others' ?

May 4, 2010

I was running '# ls -l' in '/' directory and I noticed all directories in '/' have the following permeation 'drwxr-xr-x' [except root's home which is 'drwx------' (after I change it from 'drwxr-xr-x' )]

I don't want all the user (except root) to be able to read and execute (in) any directory, I just want every user to be abel to read/write/execute only in his/her home directory.

my question is, is it ok to change file and directory permeation of the following directories in '/' from 'drwxr-xr-x' to 'drwxr-x---' or 'drwx------' recursively?

/bin
/boot
/dev
/etc

[Code]....

-I and the other users use the pc for internet, open office and email mainly.

-It does not run server(s) like smb/cif or NFS.

-There are 5 usernames (created by me, non of them are superusers) in th pc, only one user is required to login at any one time.

View 3 Replies View Related

Ubuntu :: Share File Permission \ Some One Copy Their File In This Folder The Permission Is Marked As "no Group" "no Owner"?

May 18, 2011

I'm using ubuntu 11.04, I'm having some problem of ownership while sharing folder/files. to share i change the folder share option:1. Share this folder, then followed by 2.allow others to create and delete files in this folder3. guest access.Now if someone in my local network edit any file and save it, it gets locked. if some one copy their file in this folder the permission is marked as "no group" "no owner". and they get unaccessible to me. i tried doing chown <user> <folder> but it says Operation not permitted. Now how i can possibly share my folder on local network so that they can be edited by others without getting locked down , if they copy files i can able to modify them.

View 2 Replies View Related

General :: Changing Directory - Saved File On The Desktop - Cannot Seem To Get That File To Execute It

Mar 10, 2011

I was doing a tutorial on scripting in bash. I saved my file on the desktop and I cannot seem to get to that file to execute it. Here is what I have been using:

I try cd Desktop says that there is no such directory.

I tried /home/me/Desktop same thing.

View 5 Replies View Related

Fedora Security :: Error - Cannot Read /etc/shadow: Permission Denied

Jan 20, 2010

This is weird, today I updated my system and while trying to visudo from single user mode got

"cannot read /etc/shadow: Permission denied"

which kept me from doing anything until I switched to file permissions of 400 on shadow, then back. Is this being experienced by anyone else or just me? /etc/security/limits.conf doesn't seem like it wants to change in enforcing mode either and I can't find any alerts to provide clues on the situation.

View 8 Replies View Related

Ubuntu Security :: Assign Read-only Permission On Mass Storage And CD-ROM?

Jan 7, 2010

I have Ubuntu9.10 installed in my laptop, and I want to give read-only permission on mass storage device (USB flash & external HD) & CD-ROM.
please guide me how this is possible. It should be automatically.

It's necessary for security purpose.

View 5 Replies View Related

General :: Wrong File Permission / When Copy File

Oct 18, 2010

I have a C-function that create a file and then make a copy in the same directory, but somethin is wrong with permission or owners.The program starts as root user.The file creates by the program:

-rwxrwxrwx 1 root staff 199680 Oct 18 10:58 test

Ok, but after copying the permission is not the same.The file after copying (with new name) by the program:
-rw-r--r-- 1 root root 199680 Oct 18 10:58 test_copy

I want to have full permission of the copy, how to do??

View 2 Replies View Related

CentOS 5 :: Can't Execute Things In /tmp Now But Is There A Way To Execute Only One File And No More?

Feb 17, 2011

i created a /tmp partition amd mounted it like this:" mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp"
I know i can't execute things in /tmp now but is there a way to execute only one file and no more???

View 1 Replies View Related

Fedora Security :: Chrooted SFTP - Couldn't Get Handle: Permission Denied When I Try To Get The File "junk"

Sep 3, 2009

I'm trying to set up a Fedora 11 server so that users have only SFTP access. The relevant lines from my "/etc/ssh/sshd_config" are:

[Code]....

I can log in okay, I can type "cd /" and "cd upload", but when I try an "ls" command, I get: Couldn't get handle: Permission deniedand when I try to get the file "junk" (listed above), I get: Couldn't stat remote file: Permission deniedAnyone know what I'm doing wrong?

View 2 Replies View Related

Ubuntu :: Unable To Create Trashing Info File: Read-only File System

Jul 21, 2010

I plugged in my USb drive into my computer yesterday and tried to delete a folder. I was unable to do so and got the following message

Cannot move file to trash, do you want to delete immediately? The file "my file" cannot be moved to the trash. Show Details Unable to create trashing info file: Read-only file system

So when I click on delete I get another error message:

Error while deleting.
There was an error deleting Case Study Database. Show Details Error removing file: Read-only file system

At this point I can only click on Skip, Skip All, or Cancel.

I have not changed anything on the stick recently so I dont know what is causing the problem.

View 7 Replies View Related

Ubuntu :: Shell, Auto Append Number To File And Read From External File?

Oct 31, 2010

Code:
cat ${SOURCE}/{start,universal,index,end}.txt > ${SERVER}/index.html
cat ${SOURCE}/{start,universal,02042010,end}.txt > ${SERVER}/02042010.html

[code]....

View 3 Replies View Related

General :: Read .gz File Direct On Shell/terminal Without Decompressing The File?

Dec 9, 2008

How can I read .gz file direct on shell/terminal without decompressing the file?
satimis

View 5 Replies View Related

Programming :: Splitting A File Based On The Values Read From An Input File?

Jul 27, 2010

I am splitting a file based on the values read from an input file. The below one is the script.

1)How do I add the header which is present in the original file to the new split files created?(For eg. pharmacyf conatins header as table column names. The new files created (ODS.POS.$pharmacyid.$tablename.$CURRENT_DATE.dat) are without the header).

2) Also the script is creating 0 byte files for the pharmacyids which are not available in the intial file? Can this be avoided?

for pharmacyf in *
do
tablename=`echo $pharmacyf |cut -f4 -d'.' `
while read pharmacyid
do
grep -w $pharmacyid $pharmacyf >> $OUT/ODS.POS.$pharmacyid.$tablename.$CURRENT_DATE.dat
done< inputfile
done

View 2 Replies View Related

Ubuntu :: Samba - Windows Read Files From A Home File Server With An Ext4 File System?

Jan 28, 2011

Can windows read files from a home file server with an ext4 file system? or do I have to partition the drive with the server (ext4) and an ntfs partition with the files on?

View 4 Replies View Related

Fedora :: Cannot Create Regular File Read Only File System?

Jun 16, 2009

All my torrents go to my home/username/Download/ folder, I could read/write yesterday but now I cant even copy the files to a flash drive.The error i get is "Cannot create regular file '/home/username/Download/file' : Read only file system.

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved