General :: Chown - Set The Permissions Of An Entire Directory To "all"?
Jan 17, 2010
I set up a samba server on my Linux box for the purpose of allowing everyone - and I mean everyone - on my LAN network to be able to put files to one folder... The only issue seems to be not having write permissions to the target folder.
Question, re-stated: How do I set the permissions for an entire directory to not require anyone to have a login? I have tried many things, such as "chown -aR /data/public", but I still cannot seem to find the magic words.
View 2 Replies
ADVERTISEMENT
Mar 30, 2011
vsftpd 2.3.2-3After user uploaded a file it has -rw-------(0600) permissions. Of course user can change permissions manualy to any he likeBut how to set for example 0700 by default?
View 1 Replies
View Related
Jun 29, 2010
well, by mistake i ran a command and chown the whole server apache:apache
now, i can't do anything... is there a way to restore the original permissions??
View 3 Replies
View Related
Feb 22, 2010
Inspite of having 755 permissions on the chown command, it seems the command can be executed by the root only. I was under the impression that the 'x' permission for 'others' can give executable rights to the normal user too, which does not seem to be the case here. Just curious to know, if not the file perms itself, what controls the execution of the command?
View 6 Replies
View Related
Feb 3, 2010
i have a web directory that has many folders and many sub folders containing files.
i need to download everything using wget or bash.
View 7 Replies
View Related
Jul 2, 2010
Installed Sidux over LennySidux didn't want to take my usual username, because a folder with that name existed in my home directory.So, I just mounted the home partition and changed the name of my home directory from shay to shay1.Don't know what that did or didn't do permission wise to the files in my old home directory, but I've got a few unowned files floating around my home directory anyway that have been dragged in from old harddrives and such.
View 3 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
Apr 17, 2010
I have two drives in my computer: a 160GB and an 80GB. The 80 holds Ubuntu, the home folder, etc. The 160 is for other files. I need to change the read-write permissions on the 160, but I can't. If I do it through the GUI (right-click>permissions) it just changes back instantly. If I do it through the command line (even with sudo), it has no effect.
View 5 Replies
View Related
Feb 14, 2011
As the title says, I've just given ubuntu full filesystem permissions. I used the following command thinking it would change the permissions of the folder I was in.
sudo chmod -R 0777 Is there anyway of reverting the permissions without doing a full reinstall?
However saying that, i'm doing a full reinstall just incase.
View 6 Replies
View Related
Oct 26, 2010
This is on a customized Ubuntu 10.10 LiveCD. I have a directory which the default user "ubuntu" owns, and the permissions on the directory is 777. I'm unable to cd into the directory as ubuntu user. However as root user I'm able to access it. What could be the reason? I'm able to view the directory in nautilus.Note: I originally copied the folder over from an NTFS disk.
View 1 Replies
View Related
Oct 20, 2009
I am confused that what should be the permssions of home directory because currenlty my users when they log into their home directory , they can see all the contents of /home directory as well..However if i take read all permissions then my sites are not accessible , what should i do The current permissions are 755
View 4 Replies
View Related
Jun 30, 2011
I'm trying to create a script that when given a diretory, it goes traverses through all the subdirectories and process the files in them.However, there is one restriction.directories thatit traverses through must all have a read permission for the others group.How would I go about doing this?
View 1 Replies
View Related
May 23, 2011
I have a system where the permissions of many files are messed up. I have another system that has the same files, if I put that hard drive in, without simply overwriting the files, is there a way where I can recursively set the permissions of each file to that of this other directory?
View 1 Replies
View Related
Jan 20, 2009
I have a CMS that has a brilliant backup option with one flaw, it can only create a full backup in a directory inside the web root. In this case /var/www/site/backups. This is not practical for security as the resulting tar.gz file contains a full mysql backup as well as other items that the general public shouldn't be downloading.What permissions do I need to set so that the directory /var/www/site/backups cannot be browsed to in a browser but can be read / written by the CMS when a PHP script calls it?
View 4 Replies
View Related
Mar 31, 2010
I have created directories in root. I am looking for the chmod command to allow all users read and write permissions to a specific directory. I have done chmod 775 for a file but I need this for a directory. This includes permissions on all files and sub directories.
View 3 Replies
View Related
Mar 30, 2011
I am trying to setup 2 individual FTP users. They should both have access to the same directory. They both need to be able to read/write into the directory. But, I want them not to be able to write to each other's files (e.g. delete, remove, rename, etc.).
So let's say the shared directory is: /home/ftp/shared/
UserA needs read/write access to /home/ftp/shared/. UserA should only have write access to his own files. UserB also needs read/write access to /home/ftp/shared/. UserB should only have write access to his own files.
It would be a unix box of sorts, but that is the only restriction. I could use whatever software. I am currently thinking pure-ftpd or vsftp but I am open to all ideas.
View 1 Replies
View Related
Jul 18, 2011
I have a directory that needs to be owned by nginx user and I need to access it via other users in order to add/edit/delete files in it. So I created a group called www and added both then chgrp -R on the directory. However I am still getting a "unavailable to access no permissions" sort of error in my SSH/SCP/what ever you want to call Mac's Transmit.
ls -a output
drwxr----- 3 nginx www 4096 Jul 17 23:56 nginx
View 1 Replies
View Related
May 24, 2010
i just installed RHEL 5, when iam trying to create a directory or file it is not creating ...
View 7 Replies
View Related
Mar 22, 2010
i have crashed my system, i have a lot of simualtion software already configured and working on it, i'm thinking to do a new installation of ubuntu in a different partition and copy there all directory tree, basically replace the new / directory system, whit the old one that i have back up. Can i do this and everything will works ok?
View 1 Replies
View Related
Jun 29, 2010
Every time I update certain packages with rpm/yum, they reset certain permissions on their files / directories which I have intentionally changed for various reasons. Is there a way I can override the permissions that the packagers have specified in the RPMs, and force it to keep the permissions/owner/group that I've set?On a Debian system, I would just use "dpkg-statoverride". I can't find any equivalent for RPM systems (CentOS 4 & 5 in my case).
View 1 Replies
View Related
Jan 25, 2011
How to set the default file permissions on ALL newly created files in linux - but differs in important ways:
I want all files created in (or copied to or moved to) a certain directory to inherit a set of default permissions that is different from the system default.
Rationale: The directory in question is the "intake hopper" for an application. Users in a group place files in the directory, and the app (running under another user id in the same group) takes them and processes them. The problem is that the owner of each file placed in the directory is the user that placed it there, and the permissions are defaulting to "rw-r--r--"; I want to change that to "rw-rw----". The app doing the intake can't do that explicitly, because the user id the app is running under doesn't own the file in question, and the default permissions don't allow the app to chmod on the file! Obviously, the user could do a chmod after putting the file there - but I want to keep the "drop" by the user as simple as possible. (These folks are not linux-literate, they just drag and drop the files from their windows desktop to a (Samba) network share - i.e. they don't even know they are interacting with a linux system.)
umask seems too powerful: I don't want to set default permissions for every file created anywhere by these users - just those created in (or placed in) this directory.
View 3 Replies
View Related
Apr 14, 2010
I am using Red Hat Linux 4 .There are some few questions in my mind related to umask. I want to know that is the default file and directory permissions ?
- When we use umask (022) command in terminal. and create a new file then the permissions applied for new file is for that session and when the system will reboot linux will take automatically its default permission from etc/bashrc or /etc/profile ?
- Can we make our own umask or the professional way is to follow 022 only ?
- What is the benefit of umask in Linux?
View 2 Replies
View Related
Aug 13, 2011
i am trying to write a script that does the following..1. checks if a directory exists2. changes permisssions of the directoryi have written a script but it returns a message to say that the specified directory does not exist (but it does).my question is how to i search the entire file system as directory could potenially be anywhere. would cd or su be of any use here.
View 4 Replies
View Related
Mar 21, 2010
I'm using ubuntu 9.10. I used the command:
root@aduait-laptop:~# sudo chown -R root:root /media/104B-FF96/Private to set the permissions of Private folder for root but it is giving error:
Code:
root@aduait-laptop:~# sudo chown -R root:root /media/104B-FF96/Private
chown: changing ownership of `/media/104B-FF96/Private/5.jpg': Operation not permitted
chown: changing ownership of `/media/104B-FF96/Private/6.jpg': Operation not permitted
chown: changing ownership of `/media/104B-FF96/Private/7.jpg': Operation not permitted
[Code].....
View 5 Replies
View Related
Jun 10, 2010
Need explanation from a FTP guide's reference of FTP's GLOB command.
mget and mput are not meant to transfer entire directory subtrees of files. That can be done by transferring a tar(1) archive of the subtree (in binary mode). Then FTP does not transfer, even with mput, a directory of files to remote server?
Does this quote suggest I can tar my files, upload them, then untar them on the remote server?
View 1 Replies
View Related
Apr 16, 2010
Ubuntu 10.04 Beta - I recently upgraded from 9.10. I have for some time been using an IOMEGA External drive, storing files created using Open Office. After I upgraded I continued to use those files and open them in OpenOffice 3.2. Yesterday I opened the drive to work on the files and the entire directory is missing. All the other directories seem to be there. Bizarre.
Have tried using "locate" in the console, but the files are nowhere to be found. I tried accessing the permissions on the external drive but get the response "The permissions of IOMEGA HDD could not be determined". Using a dual boot system with Windows Vista, booting through Grub.
View 8 Replies
View Related
Jun 8, 2011
I installed a new 11.04 on my Thinkpad in place of the old 10.10 system, so it replaced the old /home with a new empty one. But I had previously done a partition copy of the original 10.10, complete with /home to a spare HDD so now I can copy that /home in place of the new empty /home. What's the best way to do that? Should I use 'dd'? Should I use Nautilus? Or should I partition-copy that copy of the 10.10 onto available space on the thinkpad 11.04, then manipulate the partitions to consolidate? Maybe create a separate /home partition?
View 4 Replies
View Related
May 4, 2011
We are looking for a solution that allows us to restore a servers "identity" in the event of hardware failure...ie Name, IP address, dhcpd, named configs etc.
We have ISO images of the appliance images that contains all the software and stuff. There is no real data on these servers.
If we backup the entire ETC directory and perhaps the /var/lib can we simply restore that and get everything back?
What concerns me is how some versions of Suse use UUID for the network config and the mounts points.
View 9 Replies
View Related
Jan 3, 2011
I have a large (~60GB) collection of music in various formats on my hard drive. It is organised in the form Artist/Album/*.ext
The formats include M4A, FLAC, MP3, and OGG. What I would like to do is convert the entire directory, keeping subfolders and ID3 information intact. I would preferably like to be able to do this with a single script.
I am running Ubuntu 10.10 x86_64. I am fairly adept with BASH and the command line, so I foresee no problems there. If I have to write my own script, these are the things I'm not sure about:
(a) maintaining the directory structure.
(b) how to tell the script which converter tool to use (LAME, FLAC, etc.
(c) keeping ID3 tags.
View 9 Replies
View Related
Apr 23, 2011
As I'm gonna transfer large amount of data folders from one hard drive to another, I wanna make sure that the transfer has not corrupted the data. how could I generate MD5SUMs of entire directory including sub directories, in a single file and later, how could I verify with the data I've just transferred.
View 1 Replies
View Related