Fedora :: Chgrp Chown Chmod Resetting After Boot
Aug 30, 2011
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:
[Code]....
View 2 Replies
ADVERTISEMENT
Dec 8, 2010
In Linux, how do i prevent users from executing chown, chgrp or chmod?
View 2 Replies
View Related
Feb 7, 2010
ok so im working on homework and im not understanding what my teacher is wanting me to do and i dont have time to email him seeing as he might not read it until tomorrow. so ill copy and paste and if anyone can better explain it,
2) Use the umask command to change your file creation mask such that,by default for new files and directories you create, no permissions are taken away from the 'user' (owner), write permissions are taken away from the 'group' (group owner), and all permissions (read, write and execute) are taken away from 'other'. Take a screenshot of your terminal window showing the results of this step.
3) Use the touch command to create a new file called testfile. Use the ls command to display the contents of your current directory in long mode. Take a screenshot of your terminal window showing the results of this step. Ensure that the directory listing for testfile is completely visible in your screenshot.
4) Use the chown command to change the user associated with testfile (the owner) to cint201. Take a screenshot of your terminal window showing the results of this step.
5) Use the chgrp command to change the the group associated with testfile (the group owner) to users. Take a screenshot of your terminal window showing the results of this step.
6) Use the chmod command to change the permissions for testfile such that the 'user' (owner) permissions are set to read, write and execute, the 'group' (group owner) permission are set to read and execute, the 'other' permissions are set to grant neither read, write nor execute, and finally set the SUID bit for the file. Take a screenshot of your terminal window showing the results of this step.
7) Use the ls command to display the contents of your current directory in long mode. Take a screenshot of your terminal window showing the results of this step. Ensure that the directory listing for testfile is completely visible in your screenshot.
View 8 Replies
View Related
Jul 3, 2010
As root, I use crontab to run mirrordir to backup directories. Everything gets copied over properly, but owner information isn't preserved and root is the owner of all the backed up files. I can deal with that, but crontab reports tons and tons of chown/chgrp errors for mirrordir every time I do back ups--which is every day--and the multiple emails to root of thousands of chown/chgrp errors is very annoying. The error is "Operation not permitted," but that doesn't make sense to me because the job runs as root (right?) and clearly the job is permitted to create the backup files, so why would it fail to chown and chgrp?
I've had the exact same setup on another server for years, and crontab has always run mirrordir without error. Any suggestions how to clear the errors on my new server?
View 14 Replies
View Related
Feb 12, 2011
I've just installed Ubuntu 10.10 AMD-64 and mounted several partitions into /mnt/ directory. Now I want to be able to perform operations on those partitions without limitations. I'm trying to change the owner and group but it doesn't work. I'm typing sudo chown username filename to perform the operations.
View 1 Replies
View Related
Mar 29, 2010
I occasionally get into areas in Linux where I get my own ignorance demonstrated....System is a core quad running OpenSuse 11.2 64 bit on a LAN at home. I added a 750 GB SATA drive with the idea of putting all media on the drive i.e.music primarily plus a few movies and making the data sharable by anyone across the LAN i.e. the computer in the living room with an audio line to the stereo. My room mate is strictly a Windoze user so I figured if she wanted stuff on her machine as well then format the new drive with NTFS which I did using GPartd. I then set the drive to mount as /storage under root.
I loaded the music library &c and although I can play music from my user account on this machine I can not add music or videos or anything else except as root. I dont want to have to change to /root to do this. I attempted a chmod tonight as su from a terminal then in the root GUI using dolphin and resetting the permissions under properties and nothing changes. The drive appears in the filesystem as /storage with ownership as root. The permissions are
drwxr-xr-x 1 root users 4096 2010-03-27 22:55 storage
trying to chmod as root has no effect at all. I would like to be able to add content from any machine on the LAN plus be able to play a movie or video as well as music (I assume this would need the execute permission) but chmod -R 777 storage has no effect. Neither does cd'ing to the directory and trying to change ownership or permissions on the individual files or directories on the drive.Command line as su or as root from that gui, no difference. I do a
chmod g+w,o+rw storage
and the command appears to execute.However I ls -l and find the permissions unchanged. I obviously have or am doing something wrong, possibly in the way I set the drive up in the first place.
View 8 Replies
View Related
Feb 9, 2011
I need to actively make sure some files, in a specific directory, are chmod 750 and owned by transmission:media-daemons. Other users will save to this directory, with other permissions and UID/GID but I must make sureto reinforce this default.
So I have this on my /etc/crontab:
Code:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
[Code]....
View 1 Replies
View Related
May 30, 2011
Need to recurse a subdir tree, to apply chmod and chown and ls -al .
chmod -R xxx yyy does not function properly; -R is nonfunctional.
chown -R xxx yyy functions OK.
Is there a script which will follow a subdir tree and open each subdir ? glene77is
View 9 Replies
View Related
Apr 27, 2010
I am desperately trying to recover two folders from a Freecom FSG 3 NAS. As far as I am aware it is running Linux 2.6 based on Snapgear. After working through the hardwares' recovery procedure a number of times, the state of the device appears to get worse and worse. So I have attempted to rescue the files by using a program called Putty to access the device over SSH.When I access the device using Putty I login as admin. The folders I need to recover are located in the home folder. Listing the contents of the directory I get...
/home $ ls -la
ls: ./.twonkymedia: Permission denied
ls: ./Sarah: Permission denied
[code]....
View 1 Replies
View Related
Aug 22, 2010
I added two lines on the Xcorg.conf file to try and add forward/back buttons on my mouse but after I restarted Ubuntu will not boot past the splash screen. Can I reset Xcorg.conf in recovery mode to undo things?
View 1 Replies
View Related
May 11, 2010
I upgraded Ubuntu a few times now (since 7.10) - and it still seems to be going well. I really enjoy some of the new features in Lucid - Ubuntu just keeps getting better! I dual-boot with Windows, but I use Ubuntu much more than I do Windows. I have a minor problem - my resolution keeps on re-setting itself to 1440x900 rather than 1920x1200. I think I've managed to isolate the problem. I have a single monitor, a DELL 2408wfp. I have the VGA and DVI connectors connected to the monitor at the same time - primarily because I could not get DVI to work under Karmic. I have disabled the VGA mode, so that only DVI is being used (i.e. I did this via ATI Catalyst Control Center).
When the computer boots, the screen defaults to 1440x900, on DVI. I use ATI Catalyst Control Center to change the resolution. Strangely enough, the ATI Catalyst Control Center tells me that 1920x1200 is the "Preferred" resolution. I select the preferred resolution, and it stays at that resolution until I reboot. On re-boot, the resolution changes back to 1440x900. Suspected theory is as follows:
1. Computer starts up. Computer says "do I have VGA signal"? If so, display in VGA for the BIOS setup, boot menu etc.
2. Gnome kicks in and determines it's in VGA mode. VGA likes to use 1440x900 because it feels like it. Computer changes resolution to 1440x900.
3. Gnome says "I should be using DVI mode, change to DVI".
4. What Lucid Lynx forgets to ask is "what resolution should I be using for DVI" - and uses the VGA resolution instead.
I tested this theory by removing the VGA cable from the monitor and re-booting. For the first time ever, Ubuntu booted into 1920x1200. I don't consider my work-around to be a fix, because I'm putting wear and tear on my VGA cable - as without VGA, I don't have fall-back if the DVI display driver stops working again.
View 3 Replies
View Related
Jul 17, 2010
I accidentally did a 'chmod +x foo' when i meant to do a 'chmod a+r foo'.
-rw-r--r-- 1 casper trad 53 Jul 17 22:41 filegore
-rw-r--r-- 1 casper trad 13 Jul 17 22:41 filelemme
-rw-r--r-- 1 casper trad 24 Jul 17 22:41 nix
[code]....
View 1 Replies
View Related
Jan 29, 2011
I've had my share of troubles with Ubuntu before and always been able to find help just by reading the forums, but this time it doesn't seem to be happening. Basically, I think I did something stupid by trying to change the permissions on my home folder to 777. (I'm the only person who uses my computer and got sick of always having to get root permissions.) Halfway through the process, the computer slowed to a crawl and text in dialog boxes started getting replaced with empty squares.
Naturally I rebooted - or tried to. Regular boot didn't work, so I tried recovery mode, which was kind enough to tell me I had a kernel panic because sbin/init wasn't found. Here's where things got weird: I then tried to boot from my Ubuntu USB stick, and couldn't. I got to the USB menu, hit the "run" option, and after a few seconds of the Ubuntu boot screen, my monitor went blank. Actually, to be technical, it didn't just show a black screen - the screen shut off. That's as far as I've been able to get.
By the way, just before I tried what I'm now calling the chmod-of-death, I also had an update freeze in the middle. I am able to boot into Windows, and have checked my USB stick - all seems fine. Any thoughts on this? Worst case, I can reformat the partition and reinstall, but I'd rather not lose all that data.
UPDATE: Okay, so I *did* manage, after about ten more tries, to boot from the USB stick. I went in from there and changed all the permissions back to 755. Tried to boot in recovery again, and still getting the same sbin/init error - so I'm wondering now if it had more to do with the failed update than the permission change....
View 7 Replies
View Related
May 23, 2010
My issue is like this: I have a laptop (dell vostro 1400, NVidia 8400M video card) running Fedora 12 up to date. My desktop is KDE 4. I usually run the laptop connected to the power outlet, so my power profile is set to "performance". This power profile sets the screen brightness to the maximum. However, when I'm in the dark, I want to lower the screen brightness. The shortcut keys work, and the screen brightness is lowered. However, for some reason, after about 30 seconds it resets itself to the highest brightness setting. No matter how I set the brightness, it will always reset itself. Any ideas what can i do to correct this?
View 3 Replies
View Related
Aug 7, 2010
I've got on board HDA ATI SB using VIA VT1708S chipset. I have to get into Alsamixer everytime I reboot the computer to reset the 'Master' volume level so that I can hear the sound on my computer. I also have a Logitech 9000 webcam with built in mic also.. It is my understanding they may both may be conflicting with one and another. They both work. Alsamixer doesn't have a setting that allows you to save your levels once they have been adjusted, just 'esc'. How can I set alsa mixer up to keep my settings so that I don't have to continually reset them when the computer is rebooted?
View 5 Replies
View Related
Jul 14, 2011
I have been running Fedora 15 on an IBM Thinkpad R61 for some time now.Wireless has an intermittent problem. Icon shows me being connected nut unable to view anything. This is easily rectified by resetting wifi.Whilst this is intermittent it does get a little annoying.Not sure what information anyone would need from me to assist as I am a bit of a newb.
View 9 Replies
View Related
Nov 18, 2009
every time i open Pidgin, it resets my nickname to my name as shown in Windows Live Mail, i tried changing the nick from the plugin, but as soon as i restart Pidgin, it will set my name again, this happens in the standard MSN and the MSN-Pecan plugin
View 3 Replies
View Related
Jun 25, 2011
Well, I reinstalled after this update fiasco we just had and now I am having issues with my driver resetting. I open terminal and type in:
Quote:
sudo rmmod rt2800usb
Finishes properly. I then pull my USB device, plug it back in, new driver kicks in. Wireless then works fine. However, upon reboot, it's back to using the rt2800usb driver, which doesn't work. So I head back to terminal and repeat the step above and all's well after.
I am fairly new to Fedora, so how can I actually get Fedora to completely blacklist the rt2800usb driver?
View 4 Replies
View Related
Mar 11, 2010
I have been using Nautilus file browser in my fedora 11 desktop to browse Samba shares of our servers. Let me explain my problem.
We have two users test1 and test2 who can access Samba shares for downloading and uploading files.
test1 has read only access.
test2 has read/write access.
When I initially connected to the samba share through test1 user through Nautilus file browser I clicked on remember password.
But now when I try to access the share again, its not prompting for password. It is directly taking test1 user's password who doesn't have write access to share.
How to get the password window back to fill test2 username and password.?
View 2 Replies
View Related
Jun 17, 2010
When I reboot, and check "synclient -l" all the options except the last two ("VertTwoFingerScroll","HorizTwo FingerScroll") are configured the way I made it. These keep getting reset to zero and I tried adding this snippet to the end of files in /usr/share/X11/xorg.conf.d but to no avail.If I do "synclient VertTwoFinger Scroll=1" then it my two finger scroll works, but I want it to be permanant. Anyone have a clue why it keeps going back to 0?
View 3 Replies
View Related
Jun 15, 2010
I'm using Linux in a large multi-user network. Let A be some group which I'm am member of, but which is not my primary group. According to chmod(2) I should be able to chgrp a file to group A. Trying to do so succeeds on a local as well as on a NFSv3 mount, but not on a NFSv4/Kerberos mount (EPERM). Are there any special considerations regarding chgrp when using NFSv4 mounts?
View 1 Replies
View Related
Nov 17, 2010
I need git user to run
chgrp -R www-data linode.git/
chmod -R 770 linode.git/
as root. Only these two commands and only for git user. How can I do that?
View 2 Replies
View Related
Nov 4, 2009
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
[code]....
View 11 Replies
View Related
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.
View 3 Replies
View Related
Mar 10, 2010
I was recently messing around learning chgrp commands, and set my (only) user account to a different group. Now whenever I try to sudo a command, I get 'john is not in the sudoers file. This incident will be reported' message.I *seem* to have a root account (one is listed in System->admin->users and groups), but I'm almost certain that the password for it would be one of 3 things, and it's none of them.
View 2 Replies
View Related
Feb 25, 2009
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");;
[code]...
View 3 Replies
View Related
Nov 25, 2010
Is there also an chmod GUI for read and write permissions?
View 5 Replies
View Related
Dec 18, 2009
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....
View 3 Replies
View Related
Mar 31, 2010
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).
1. what did I wrong?
2. how do I get the files back using Nautilus?
View 6 Replies
View Related
Aug 20, 2010
Chmod has no option to skip lowering execute bit on directories? Now that's something I would consider a serious bug.
View 14 Replies
View Related