I need to setup permissions for some files.The users on this Ubuntu system should be able to read/view the files.They cannot write/edit the files.Most importantly, they should NOT be able to copy the files anywhere. They should NOT be able to copy these files to another folder, USB device, etc.
Problem: permissions for rsync and BackinTime. Setup: Ubuntu 11.04, Two internal HD, #1=main, single boot, #2=backup drive. Question: How do I set up my 2nd HD with correct permissions? Background: I had previously a dual boot XP+10.04 with a 2nd HD formatted as NTFS. With this I was able to use my rsync and backintime to my 2nd HD with no issue. My new set up is EXT4 on both HD.
(I even tried to reformat my 2nd HD as NTFS, but that didnt fix the issue) I followed [URL] to mount the 2nd HD and get permissions. But now when I run backintime i get this error: [E] Error: rsync: opendir "/home/myhome/.ssh" failed: Permission denied (13) I did my requisite reading for a newbie, and am stuck. I ran backintime as root, and it backed up ok. How do I run my user version of backintime? (i.e. How do I fix the permission issue?)
the permissions for my home directory were accidentally changed from 'access files' to 'create and delete files', and I changed them back, but ever since then I am not able to change any preferences/settings at all. power management, themes, panels, emerald, anything. my user account is supposed to be the administrator, and all the user privliges are checked. how to get control of my computer back?
I'm trying to set up sshfs on a desktop/fileserver so that I can mount its HDD's I use for storage on my laptops. My issue seems to be getting permission to write to the mounted drives. I just keep getting permission denied. here is what I think are some relevant tidbits. mount point on server,
HDD I'm trying to mount Code: joe@joe-desktop:~$ ls -ld /dev/sda2 brwxrwxrwx 1 joe disk 8, 2 2010-10-17 15:22 /dev/sda2
Mount point on client Code: joe@joe-laptop:~$ ls -ld ~/sda2 drwxrwxrwx 2 joe joe 4096 2010-10-17 19:58 /home/joe/sda2
This is the command I'm trying to use to mount Code: sshfs joe@192.168.1.103:/home/joe/sda2 ~/sda2
I can chmod the mount on the server to 777 but as soon as I mount the HDD to the server all write permission just goes *poof* and its back to "drwxr-xr-x".Chown seems either, it just wont stick.
I have a couple of user accounts where each member belongs to a group i have created: Each user access the share using their own user account credentials. How can I configure Samba in a way so that each modification done on the share gets the owner of the user and my group instead of the user and the users own group? I would also like the access rights to be 770 to each modification.
In other words, today each modification by "userA" get the owner "userA.userA" and I would like it to be "userA.MyGroup" with "rwxrwx---" permissions.
I am used to setting up users and groups on my daughters computers with Ubuntu installed. user: magz (daughter) user: nigel (me) group: nima
We each have our own folder for files i.e. magz and nige. This has always worked well and it didn't matter which user is logged in we could create and access files in the other users folder with full permissions. root@nbsq: /media/2xfi/files# ls -l total 8 drwxrwxr-x 9 nigel nima 4096 Jul 13 09:45 magz drwxrwxr-x 3 nigel nima 4096 Jul 13 09:45 nige
I have finally got around to getting her to try Debian which I always use, however I have never had to set up users, groups etc in Debian (squeeze) so I just did what I'm used to with Ubuntu. What I've found is that if I create a folder while I am logged in then that folder cannot be accessed by my daughter when she is logged in and the same applies if she creates a folder then I cannot access it when I am logged in, unless of course I use terminal to change the owners. In each case with the new folder the owner will be: root and the group will be: root. I would have thought what works for Ubuntu would work for Debian, however there must be differences.
I am looking for the best way to set up permissions in the following situation. I have a web server set up on debian. I have different web sites in /var/www. Each web has a group of developers who each have system users and ssh access to the server. For example i have a web site in /var/www/example.com and a group of developers in group exampledev. I need all the users in exampledev plus the apache user (www-data) to have read write and execute permissions on all the content of the web site. I can give the group exampledev these permissions without a problem. The problem is that when they modify or create new files (they either connect via ssh o sftp which is the same right?) they are created with their user and group rather than exampledev. Am i going down the wrong path? This must be a common situation but i haven't found the solution.
I have a remote directory shared over NFS called tech with perms set as 0750 and owner set to root:tech. I have 2 groups: tech, and techAdmin. tech can read and execute within tech/. techAdmin can read, write, execute. I have 4 users: user1, user2, user3, user4. user1 and user2 is a member of techAdmin, user3 and user4 are members of tech. simple so far...but wait here's the problem. If user1 creates a file inside tech, user2 cant read or modify it because user1 owns it. Here's a few sites that reference this problem:
I have limited experience in terminal, but let me first explain what I am trying to do to see if there is some easier way to do it. Basically I want to change the skin in aMSN. I downloaded the new skin but am unable to unzip or move it without /root permissions. I don't know how to acquire this without being in terminal. So I figured there had to be some way to go into the terminal and use it to move the unzipped folder from the desktop to the aMSN skins folder.
I did a clean install of 10.04 over the weekend and copied all of my backed up files from my external drive back to my internal drive. However, I've noticed that when I moved all my files back, they're all now marked as being executable. I've since fixed this, but I was wondering why this happened to begin with?
I use rsync to backup my files (grsync to be exact), but when I do so I copy files from my internal drive, which is formatted as ext4, to my external drive, which is formatted as NTFS (I keep my external drive as NTFS in case I need to hook it up to a Windows machine). Does the file system discrepancy have to do with why my permissions change when I backup/restore my files? Is there a way to prevent this? Or should I be backing up my files a different way?
I made some files belong to root, so that my sister couldn't read them while she was staying with me, there were about 40 files altogether but I did them all at once by change the permissions of the folder and clicking "apply Permissions to enclosed files" but now I want to change them back to belonging to my user account so Opened a gksudo nautilus windows and I went on folder properties and set the permissions to [user] and clicked apply to enclosed files, but it only did the folder. I tried selecting all the files and changing them all at once that way but it won't let me, how can I make the files belong to me again, other then one by one? I dont know how to use the CLI that much.
I am using Ubuntu 10.10 Meerkat and everytime I attempt to edit the permissions of a file either using the command line or gui it does not stick. When I use the gui and click in the permissions tab and then choose execute file the check mark appears and then immediately disappears.
When I attempt to change permissions via the command line and execute a script even if the script was created by me it does not work and when I check the permissions there is no changes from the original before my attempt to add execute permissions.
Even when I change permissions for read and write they don't stick.
I had no problem when I was using 10.04 and need to get this fixed.
PS. I made sure I am changing permissions using root privileges.
I wanted to know whether its possible to prevent some user from playing mp3/any other media files, using the chmod command? Are the read and execute bits meant only for text/office files?
I logged on today to find that all the folders in my home folder are empty when I look at them in nautilus. When I try to cd into them via the terminal, I get a message that says I don't have permission. When I cd as root, however, all my files are there.
Yesterday I was messing around with Apache authentication, and it appeared from Firefox that the contents of one of my directories was empty.
I checked, and I am an Administrator, etc. I'm on Ubuntu 10.04.
i want to change permissions for /proc/sys/net/ipv4/ip_forward and permission denied.when i want to delete it , operation not permitted.i know it is dynamically created file . but i want to chenge its permittion to read-only or delete it
I've recently converted two Ubuntu 10.04 (one 64, one 32bit) machines to LibreOffice. We've used OpenOffice.org since early 2.x The issue is a database file created in OOo and now needing to be accessed in LO. As far as I know, there shouldn't be any issue with file compatibility. On the 64 bit machine, (a Ubuntu server installation - not headless) the file opens with no trouble and is fully accessible. (forms, reports, tables, etc.) However, on the 32 bit machine, trying to access the file over the network on the server via samba (because we also have Windows machines on the network, so I serve it all up via samba) I am able to open the database, but get the following error when trying to access any table, form or report: The connection to the data source "Mattress Prices" could not be established.
I have a shared partition on Ubuntu, 'dm-6', if I create a new folder in it, it has 'teocomi' as owner.If I create the folder from another (windows) PC the owner is 'nobody' and from Ubuntu I have to chmod/chown it in oredr to edit its content...Is there a way to set automatically permission and owner for newly created folders and directories?
I've been using Ubuntu for a few years and I am having issues trying to load .jar files and .exe files in Wine. I keep getting an error message that says my computer doesn't have permission to load these files. I've done some research and found people saying to enable the file as executable in the files properties, to enable executable in the permissions folder, and to allow source code on the Ubuntu Software screen, but whenever I try to check these boxes, they immediately revert to having a line through them instead. I remember when I was running Ubuntu a few years ago I was able to completely disable this restriction in terminal, but I can't remember what I did.
After burning files to DVD+RW, the owner is changed to root, and all permissions are read only. I want to periodically open these files, update them, and save to the DVD again, but I no longer have permission and cannot change the permissions since I am no longer the owner. I tried sudo commands, but get responses "Read only file system". I have erased and reformatted the DVD and started over but get the same results. I have Ubuntu 9.04, and have tried Brasero and Nautilus and get the same problem. Am I using the wrong kind of DVD/CD?
I want to add my daughter as a user and give her full permissions to all the same folders and files that I use. I have given her permission to folders and their sub folders however she doesn't have rwx on the individual files within the folders. What is the command line to set this up?
Also with the command;
Code: chown -R root:root files
what is the -R for and when do I need or not need it?
I've been using Ubuntu for about 2 years now, but still have trouble with some of the finer workings of linux. I have a laptop that I use for general computing, and a desktop hooked up to a TV as sort of a remote backup/htpc. A problem I run into is when I transfer files, they get transfered with the owner set as the original computer's account, and I can't do anything until I open a remote viewer and gksudo nautilus to change the permissions of the file. I looked at articles about permissions and uid's, gid's, and umask but can't figure out how to apply it to my situation.
I thought about doing something with groups but am not sure exactly what, and anyway, default group settings only give read access and what I'm really looking for is the ability to manipulate files and folders across the entire /home dir on my desktop from my laptop. Desktop is running 8.04 and laptop is running 9.10. BTW I am currently sharing through smbfs. I read that this has been replaced by cifs, but at the moment I would prefer not the mess with things if I don't need to.
I got two ubutnu servers running side by side, I need to transfer several dir's of files, incl sub dirs to the other server via ftp and retaining the file permissions and dir structure. Both servers have ftp access, I am assuming theres an ftp command I use on the destination server to connect to the source server and retrieve the files? All the files reside in the one dir and need to be copied to the same dir on the destination server.
I'm sure that the issue I'm having is easily solvable once I gain some understanding about copying files - and file permissions in Ubuntu. Here's my situation:
I have an external HDD where I like to back up some files (I mess around with distros on my main machine and feel less stressed knowing the important stuff is backed up). I have an ext4 partition on the external drive where I have copied files, both through the terminal (cp 'filename' /dev/sdc3) and by drag and drop (gnome-terminal).
The problem is, once the files are copied, most are inaccessible. I can view them, but some directories and individual files say I do not have permission to open them. Others are accessible. This is from the same user profile that copied them.
How do I see what's going on? More importantly, how do I make files on external drives available to any user or OS (that can handle ext4)? I want to make sure that if my whole system gets effed that I could still do a reinstall of my OS and then access those backup files.
I've just read that I can't change the file permissions of files and folders if they are sitting in what was my old Windows D: drive. Is this correct? If so what is the work-around?
I don't want to have to cut and paste that entire D: drive's contents over to a recognised Ubuntu folder. I had in my mind that this D drive would continue to be my data dumping ground, to which I need read/write access to.
My laptop has Ubuntu as a dual boot. Many times I want to copy files from one folder to another. But I run into permissions problems.
For example, I downloaded a program that required me to put a rules file in /etc/udev/rules.d But when I tried to do that, I got an error: "permission denied"
Is there any way to change permissions on folders so that I can freely copy them from one folder to another? That would make life a lot easier.
I have Ubuntu 10.10 running here and a Windows 7 desktop. I'm using samba to share files and folders. I have full read/write access to the 7 box, and vice versa. However, whenever a user of the 7 box drops a file on my Desktop, for example (it could be any of my shared directories), it always has a padlock on it and I have to chown it before I can move or delete it.Can anyone tell me how to get myself permanent ownership of these files? I'm pretty sure I had this problem once before, and it was an issue of adding myself to a particular group, but I forget.