General :: Not Getting All Permission On A File?

Jul 18, 2011

i have two different systems having centos and slackware OS's.when i mount files on centos system from server, i get all permission on files means(rwx),but when i execute same command on my slackware system, i get only read permission on file.
i use mount -t cifs //serverip/sheetshare /root/Desktop/sheet/ -o username=abc,password=abc.

View 1 Replies


ADVERTISEMENT

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

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 :: How Is The File Permission Is Defined

Jan 18, 2010

how is the file permission is defined?

for example when i use the command list -l testp01.txt i get the result of testp01.txt file permission -rw- r-- r-- root root etc however i wonder where are those information written?

is there any special file which contains all of these information?

View 7 Replies View Related

General :: File Permission In CentOS 5?

Sep 26, 2010

I am creating a DVD iso of the mentioned six .iso file using 'mkisofs' in CentOS. During the process, at about 12%, an error occurred. The error was that: "Cannot read from '/sys/firmware/acpi/namespace/ACPI/_SB/PCI0/P2P0/S4F0/eject'" I remembered setting all the permissions to "read and write" but I kept receiving the same error next time.

View 1 Replies View Related

General :: File Permission And Groups

Jul 17, 2011

I have been trying to to make the folder "/home/files" Read/write/Execute for the group "admin" and only Read for Group "Friends"

View 4 Replies View Related

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 :: Use Chmod To Change The File Permission?

Apr 24, 2011

If I am not the file' owner or root, can I use chmod to change the file permission?

Assume I have group/write access to the file, e.g. 775

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

General :: Change The File Permission Of Grub.cfg?

Sep 15, 2010

My cd /boot/grub/ shows (required only file shown): -r--r--r-- grub.cfg

I tried to change the permission of this via, chmod u+w grub.cfg but the file permission did not change why??

How can I change the file permission of grub.cfg?

View 1 Replies View Related

General :: File Permission To Specific User?

Jan 13, 2011

i have created a file (by root user) called test.txt. Then i created a user bob. Now i want only bob to read/write/execute this file and no other user shall have any permission on it.

View 3 Replies View Related

General :: How To Permanent Change Permission Of File

Jun 8, 2011

I have a c file, and I want to open it but not in the terminal. After changing the permission, I tried: vi, pico, ed and vim. But, all open it in the terminal. How can I change the permission of that file to be opened and edited not in the terminal? When I change the permission from the terminal, it only let me edit it through the terminal, and when I check the permission of the file I see it as was it (no change). I need a permanent permission. Although, I command as a root.

View 7 Replies View Related

General :: Permission Denied While Trying To Put File Using TFTP

Jan 6, 2011

I am trying to put a file from one linux machine to my other linux machine. There is absolutely no problem in downloading the file i.e. performing the "get" operation but when I try to upload or "put file" from my host1 to host2 it throws error "Error 0 Permission denied". I am able to put files from host2 to host1 without any problem but not from host1 to host. Infact if I try to tftp even localhost on host2 it throws the same error. Here is my

/etc/xinetd.d/tftp file for host2
service tftp {
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
#disable = yes
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
And permissions on /tftpboot are 777
[root@LinuxServer /]# ls -ld /tftpboot/
drwxrwxrwx 2 root root 4096 Jan 6 05:21 /tftpboot/
[root@LinuxServer /]# ls -l /tftpboot/
total 16
-rwxrwxrwx 1 root root 11 Jan 6 06:16 new_test
-rwxrwxrwx 1 root root 12 Jan 5 06:02 test2

And the command which I am using is :
[root@LinuxServer /]# tftp localhost -c put new_test
Error code 0: Permission denied
And ya here is /etc/sysconfig/selinux file is as under :
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=permissive
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

View 3 Replies View Related

General :: Renaming File Permission Chmod?

Apr 11, 2011

that works to disallow non-owners from renaming the file, but what I wouldlike to do is disallow EVERYONE ( including the owner of the file ) fromediting, moving, or changing the filename once it is created. the only personwho should be able to make those changes is a special user.

View 13 Replies View Related

General :: Can't Change Permission For Bash.bashrc File?

May 28, 2010

I tried following the example from here (http:url]......)Open up publicity.html for reading and writing by anyone.

Before: -rw-r--r-- publicity.html
Command: chmod og=rw publicity.html
After: -rw-rw-rw- publicity.html

Here's my terminal session:

username@ubuntu:/etc$ -rw-r--r-- bash.bashrc
-rw-r--r--: command not found
username@ubuntu:/etc$ chmod og=rw bash.bashrc[code]....

View 2 Replies View Related

General :: Floppy File Permission \ Cannot Seem To Find One That Fits?

Feb 10, 2011

I've combed the prior posts for an answer but cannot seem to find one that fits.I have a half dozen imation super disks, 120 mb. I would really like to use them occasionally.I can't seem to format them to ext because of a permission issue. But I somehow think it is not a user permission problem but a disk issue.I have already done:

Code:
chown root:floppy /dev/fd0 && chmod 660 /dev/fd0 && adduser <username> floppy
checked to see that I was properly added as an user but when I tried:

[code]....

View 2 Replies View Related

General :: Cannot Copy File Even As Root (Permission Denied)

Jan 2, 2011

I am attempting to make a backup copy of a file, but every time I try to copy the file, I get a "permission denied error -- even when running as root. The file is on a volume mounted as /media/Data . No problems reading/writing other files on the volume.

Here is the info on the file:
-rw-------. 1 root MailServer.img

I've tried chown but get the permission denied as well. This is a virtual machine image that runs fine, but even with the VM completely shut down, I get the same error.

View 10 Replies View Related

General :: Trying Sudo MV Command On File - Permission Denied

Jul 17, 2010

If I try the sudo mv command on the file listed below I get the error listed. I am confused. It is my file & I have permissions. Somehow a slew of files on my system are now showing this way. This seems to correspond when I ran rsync from my netbook to sync it up with my desktop where I am having a problem.

Potential Source ->
sudo rsync -av --delete --rsh=ssh joe@192.168.1.4:/media/Abyss/Memories/ /home/joe/Pictures/

Type of issue ->
mv: cannot remove `100_2259.jpg': Permission denied

joe@Tux-Box:/media/Abyss/Memories/2009/3-09$ stat 100_2259.jpg
File: `100_2259.jpg'
Size: 243012 Blocks: 480 IO Block: 4096 regular file
Device: 811h/2065dInode: 1312030 Links: 1
Access: (0777/-rwxrwxrwx) Uid: (1000/joe) Gid: (1000/joe)
Access: 2010-07-17 11:41:26.708020712 -0400
Modify: 2009-12-13 21:49:59.501938000 -0500
Change: 2009-12-24 05:54:02.854309200 -0500

View 7 Replies View Related

General :: Set Permission Type On A File To A Particular User In A Group?

Jan 20, 2011

i want to set permission type "write" on a file to a particular user in a group of users ( not all users in that group). chown is changing a user to root , but i want to set say permission of "write" only to a user 1 in group staff which contains 10 users 1 , user 2 ...user 10.

View 3 Replies View Related

General :: File Permission And Shared Folder In Virtualbox

Feb 6, 2011

I have virtualbox installed, and arch set up as the guest OS now i have made my home folder shared folder with the guest OS but at first my arch couldnt read my home folder.i realized the permission setting for the home folder is set as rwx to myself, and nothing to everyone else.so i chmod -R 755 to everything and that seemed to have solved the problem now i want to make my home folder readonly to my guest OS. do i just do chmod -R 744 to my home folder? i already messed up something when i set 644 to everything in my home folder, as my dropbox stopped working so im afraid of something like that happening to me again, otherwise i d love to experiment

another question is, are .so files supposed to be executable? I googled it, and it seems they dont have to be.But my dropbox stopped working after the .so files in /home/myhomefolder/.dropbox got assigned 644 D:

View 2 Replies View Related

General :: Make New File Permission Inherit From The Parent Directory?

Jun 12, 2010

I have a directory called data. Then I am running a script under the user id 'robot'. robot writes to the data directory and update files inside. The idea is data is open for both me and robot to update.

So I setup the permission and owner group like this

drwxrwxr-x 2 me robot-grp 4096 Jun 11 20:50 data

where both me and robot belongs to the 'robot-grp'. I change the permission and the owner group recursively like the parent directory.

I regularly upload new files into the data directory using rsync. Unfortunately, new files uploaded does not inherit the parent directory's permission as I hope. Instead it looks like this

-rw-r--r-- 1 me users 6 Jun 11 20:50 new-file.txt

When robot tries to update new-file.txt, it fails due to lack of file permission.

I'm not sure if setting umask helps. In anycase the new files does not really follow it.

$ umask -S
u=rwx,g=rx,o=rx

I'm often confounded by Unix file permission. Do I even have a right plan? I'm using Debian lenny.

View 4 Replies View Related

General :: Set Permission Of File On Samba Network Drive From Windows?

Oct 14, 2010

I am accessing network drive (Z:stream) on windows. Now the permission set on stream folder is like chmod -R 777 streams/ means all the files inside stream is at 777 but now i am copying some files from windows to this streams folder but permission on those files are not 777 ,i would like to have permission 777 on those files that copied from windows ...how do i do that??

View 1 Replies View Related

General :: Iso Image - Install Matlab From Iso File Without Root Permission?

Apr 17, 2011

I have an ISO file of MATLAB and I want to extract it to be able to run the installer. I'm not the admin of the computer and there is no 7-zip or file-roller. It has isoinfo but I don't how to use it to extract the whole ISO file and apparently I cannot mount the ISO too. way to extract the iso file?

View 1 Replies View Related

General :: Can't Delete File (rm: Cannot Remove `nagios': Permission Denied)?

Jul 11, 2010

Code:
[serv@local subsys]$ rm -rf nagios
rm: cannot remove `nagios': Permission denied

[code]....

View 2 Replies View Related

General :: Executing File Resulting In Permission Denied Error

Apr 21, 2010

I am wondering why running this file:

Code:
-rwxrwxrwx 1 root root 1247 2010-04-21 18:25 autorun.sh
by issueing this command:

Code:
./autorun.sh
results in this message:

Code:
-bash: ./autorun.sh: Permission denied

I'm logged in as root and prior to the above I did a chown root:root on the file.

View 3 Replies View Related

General :: Permission Denied When Creating File (Input Document)

Jul 11, 2011

I am trying to create:

/etc/X11/Xsession.d/95xinput document
where
/etc/X11/Xsession.d is a folder.

So I enter the above commands:
cd /etc/X11/Xsession.d
nano 95xinput

I type my text and when I try to save it it says that permission is denied.

View 7 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 :: Removing Write Permission Does Not Prevent Root From Writing To File

Feb 3, 2010

I just noticed on my Ubuntu machine (ext3 filesystem) that removing write permissions from a file does not keep root from writing to it. Is this a general rule of UNIX file permissions? Or specific to Ubuntu? Or a misconfiguration on my machine? Writing to the file fails (as expected) if I do this from my normal user account.Is this normal behavior?Is there a way to prevent root from accidentally writing to a file (Preferably using normal filesystem mechanisms, not AppArmor, etc.)

I understand that root has total control over the system and can, eg, change the permissions on any file.My question is whether currently set permissions are enforced on code running as root. The idea is the root user preventing her/himself from accidentally writing to a file. also understand that one should not be logged in as root for normal operations.

View 4 Replies View Related

General :: Recursive Write Permission On Cifs Mounted File System

May 14, 2010

I have mounted a iomega file system on a cetos os machine using

mount.cifs //filserver-ip/directory /home/my-home/mounted-file -o
user=username

(** mounted as root) The mounting works fine.

The problem arises when I try to create a sub-directory inside the mounted directory. All the newly created sub directories become write protected.

I am accessing this file system from R software and it needs to write/create directories in side this mounted directory.

how can newly created sub-directories will become automatically writable, so that R can create new sub-directories and write data inside those directories.

View 2 Replies View Related







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