Red Hat / Fedora :: Getting File Or Dir Modes Before Chmod?
Jan 28, 2011
Does anyone know of a trick or tool that will show me ther directory?Example:neatcmd.bash /dir1/dir2/file1 /dir1/dir2/file1 permissions are 0640Or does anyone know of a tool or command what would convert, for example rwxr-x--- to 0750 suppose it could be scripted, but I was trying to make sure I did not have to re-invent the wheel if something was already out there.
I am running a mainframe emulator on an old HP server in runlevel 3 text only. I have googled a bit but found no information on controlling the text video mode in runlevel 3. When I boot my Fedora 12 system chooses the highest resolution it can meaning my c3270 terminal emulator program (80x25) is in tiny font occupying a fraction of the upper left corner of the screen. I have looked everywhere but can find no mode setting commands for runlevel 3 text only.
I use 3 computers attached to a kvm switch (not the hypervisor) and this works fine w/ windows xp and ubuntu 9.04 and earlier. However I am having a problem w/ Fedora 12. It seems that it cannot read the EDID block, so I am not able to set the display above 800x600. There is no xorg.conf file, so I had one generated by Xorg -configure :1. I also tried using the modeline instructions, but the Xserver would not start until I removed modeline. I have tried adding to Section "Screen"
but it seems that this is ignored. how can I get the Xserver to set display modes above 800x600 when it cannot read EDID (thru a kvm switch) and it seems to be ignoring settings in xorg.conf?
Something keeps changing the mode of ~/Desktop, ~/Music, ~/Pictures and ~/Videos to 0777! Anyone know what's doing this, why it's doing it, and how I can stop it?
I have installed php, mysql, and apatche. And i need the /var/www/ folder to be able to be read witten, and acsessed by anything. I have tried chmodding 777. But it still doesnt work.
I had created a file under a directory & set the permissions through chmod command but when I create another file under this directory, I get the default permissions. Is this due to umask or can I set the file permissions through chmod under a directory.
I'm trying lo lock a file (not using the chmod). This is the code I generated, but even locking the file I still can read and write the file from another process. (I'm working on a ubuntu 10.10, kernel 2.6.35-22-generic #35-Ubuntu SMP)
What does chmod 000 do?when i create a chmod'd file with the 000 permission what happens?I tried creating a file with 000 permissions, and I was still able to read and write to it. So what what does chmod 000 actually do?
The software I just bought (Lightroom 2.1) contains instructions to get my serial. I downloaded the sofware on my desktop and installed it. In the terminal, I wrote "chmod +x keagan", pressed enter and wrote "./keagan" and I get this message: No such file or directory. what I am doing wrong? I am working on Mac OS 10.4.
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.
I've got some trouble while trying to install some applications on my linux system. It is said that the files in my /var/www/html/xxx directory, where I put them, is not writeable. The command chmod 777 xxx has been tried to make it work, but the error remains when I opened the applications again.
To be specific, I want to install phpFreeChat on my system, so I put those files in the /var/www/html/freechat directory, cd there and typed chmod 777 data/private, chmod 777 data/public on bash. Here's the result of list -al data:
drwxr-xr-x. 4 root root 4096 Jun 17 15:07 . drwxr-xr-x. 13 root root 4096 Jun 17 15:22 .. drwxrwxrwx. 2 root root 4096 Jun 17 15:07 private drwxrwxrwx. 3 root root 4096 Jun 17 15:07 public
These all seemed all right to me, until I typed http://localhost/freechat in my browser. Here's the result:
phpFreeChat cannot be initialized, please correct these errors: /var/www/html/freechat/src/../data/private is not writeable
I want to have two kind of users in a work machine having ubuntu 10.04,
1) He is the admin, have sudo privilages and install, do all types of work, his username is abhilash
2) A user who is normally a IT administrator, who can just install or remove softwares, but cannot access files of abhilash.
I'm trying to do this and my head is going blank, The problem where i'm stuck is, if IT admin can install softwares, then he can become sudo as sudo su, then he can view my files
So here is a small test i did, first with abhilash.
Code:
Now others and group don't have any permissions! But when IT Administrator becomes root, he can see this file
I've hit a wall here; I'm attempting to find some way by which to view files and cd into directories on a device mounted read-only. So I need the permissions to read, write, execute (and the same with directories), but chmodding is out of the question because I don't want to alter the drive one iota.
I guess what I could do--what I was thinking of initially--was to dupe the whole drive and then mess with permissions. This wouldn't affect the original (actually I'm working on a duplicate of the original, but I'm treating it as if it were the original) but I was hoping for something that would maintain data integrity. This is a forensic application and not altering the data is very important.
I wan to install a .bin file after I logged in as a super user also changing mod of the file doesn't work as proved through file properties I tried also chown but in vain here is a picture of the terminal:Quote:
[aratux@localhost downloads]$ su Password: [root@localhost downloads]# AdobeAIRInstaller.bin
I have stipped down the test to the basics and still can't get it to work.I have a file called test.php stored in /usr/share/data/audio (an aliased directory in apache). This file simply contains the code...
Code: <?php fopen('play.xml', 'w') or die("can't open file");;
I've got a simple set of c code that I use to talk to the parallel port.I use this to control some electronics. For some reason #chmod u+x /usr/bin/lptout does not work when I do an $lptout 17 (or any other value less than 256. I've run this code on other redora boxes but it does not work on a specific laptop we are testing.
Any ideas on what chmod is use to let a not su - user use./usr/bin/lptout ?
************************************** Here are the directions I use:
$gcc lptout.c -o lptout as su - #cp lptout /usr/bin/ #chmod u+x /usr/bin/lptout as normal user $lptout 0-255 code....
I have a separate data partition on my F12 box with one dir for my children and subdirs for each of them. because they had no rw- rights and because they sometimes use one of the other logins to work for school I changed the permissions for their dir so that anyone has access. I used
Code:
# chmod -R 666 [their directory]
after that Nautilus displayed an empty folder even with 'show hidden files' on.however, with
Code:
ls -lh
on the dir and subdirs all the files seem to be present (luckily).
I'm trying to make a particular file accessible on my computer ( /dev/uinput ) without having to use sudo or su - I've set up a wiimote to act as a remote for my media player, and it requires access to that file. When I use chmod, chgrp or chown to change the file's settings, it enables access to the file - however, when I reboot my PC, the settings get reset, and I have to change the access rights when I first use it again. I've tried using the following commands to make the changes (substituting my username/groupname as user and group below), as root:
we have a customer that ran a sudo chmod +x -R * command on his / filesystem by mistake and now the machine cannot be accessed on the network Has anyone any idea what chmod command to run to restore the system to its original state ?
how do you enter into different modes of vmstat e.g-disk mode,disk partition mode and slab mode.going through man pages i figured out using "vmstat -p <partition> is for 'disk partition mode'.there is no info regarding diskmode and slab mode