Ubuntu Servers :: Chmod On Several Files With Spaces In Name

Jul 20, 2011

I don't know how to fix this command:

Code:
sudo chmod 700 *

when in the folder some files have the space character in the name. I have this error (sorry, italian version):

Code:
chmod: opzione non valida -- " "

translated is 'invalid option'. I have to chmod any single file with "", but it takes too much time...

View 4 Replies


ADVERTISEMENT

Ubuntu Servers :: Add Files And Make Chmod A Little Easier

Sep 13, 2010

I have set up a home server with ubuntu desktop since im new to this and need the gui. I have no problems with the lamp package or setting that up. My question is, can you setup a ftp server and then connect to it from a windows pc on the same network with a client like core ftp? I want to do this to add files and make chmod a little easier if possible.

View 4 Replies View Related

Ubuntu Servers :: Chmod -R Not Working At All?

Mar 7, 2010

I just finished setting up my home ubuntu home server. Installed LAMP and it works beautifully. The problem is everytime I upload a file through FTP into the server, the file changes permission even though I did chmod -R 755 www. Si everytime I upload a file to my server i need to run the command chmod -R 755 /var/www

View 1 Replies View Related

Ubuntu Servers :: Chmod G+s Not Working?

Jun 18, 2011

I have spent the last 2 hours trying to get this to work and it is driving me crazy, I have a 11.04 box and have setup some zfs filesystems for data storage, I have 2 users and have created a group called media and added both of the users to the group. I have changed the group of the directory to media and have set chmod g+s

root@saturn:/tank/data# ls -l
total 8
drwxrws--- 2 root media 2 2011-06-18 13:59 Backups
drwxrws--- 2 root media 2 2011-06-18 14:26 Music
drwxrws--- 2 root media 2 2011-06-18 12:44 Pictures

[Code]...

View 1 Replies View Related

General :: Shell - Rename A File From Something Without Spaces To Something Containing Spaces?

Jan 26, 2010

Is it possible, in Linux, to rename a file from something without spaces to something containing spaces? I know I can create directories and files with spaces by doing:

mkdir "new dir" and:

touch "new file.txt"

I want to rename files from:

imgp0882.jpg to something like:

20091231 1243 some topic.jpg

And how would it look in a shell script that uses parameters like:

for i in *.jpg do
rename "$i" "$somepath/$mydate $mytime $mytopic$extension"
?

I'm new to Linux (using PCLinuxOS 2009.2), coming from Windows, and I've written myself a little shell script to download files from my camera and then automatically rename them according to a date-and-topic pattern. As you can guess by now, I'm stuck on the bit about renaming. If you want to see my script, here's a copy. I'm not using jhead for this renaming because that only works with JPEG files but I want a single solution for any media format including videos.

View 2 Replies View Related

Ubuntu :: App Or Script That Finds Directorys & Files With Spaces?

Jan 4, 2010

i need an application or shell script that can identify all the directories and files in a certain directory and can rename them to remove any spaces in the filenames.anyone know of anything that can do this?

View 9 Replies View Related

Ubuntu :: Video Thumnailer Not Working On Files With Spaces In Their Names?

May 15, 2011

ffmpegthumbnailer is not working on files with spaces in their names. If i rename the file with no spaces then it creates a thumbnail with no problem.

View 4 Replies View Related

General :: Convert Tabs To Spaces In Many Files?

Jul 2, 2010

I have a lot of files with tabs littered throughout, and I'd like to convert them all into spaces. I know about the expand command, but unfortunately I would have to type out every single file using it. Is there any easier way to do this on Linux?

View 2 Replies View Related

Software :: MV Command With Files Name Include Spaces

Oct 3, 2010

One system send files to linux machine and it is name contains spaces and I tried to move it from one directory to other, but it show error:
Ex:-
mv -f file one file two
mv: target 'one' is not a directory

View 6 Replies View Related

Ubuntu Servers :: Vsftpd Chroot, Creates 550 Error On CHMOD Command?

Jul 14, 2010

I've been searching the web, without finding any sollution to my problem.vsFTPd is acting really weird. I've never seen this problem before, and I've been using vsftpd for some years nowWell.. The thing is, I've made a user that chroots to the folder /var/www on my server. And when I then try to chmod the file /var/www/htdocs/testsite/index.html through my ftp-client, I only get the error "550 SITE CHMOD command failed.", and when I then check in my /var/log/vsftpd.log it says

Code:
FAIL CHMOD: Client "192.168.50.58", "/htdocs/testsite/index.html 777"
Which I think would mean that it tries to chmod the file "/htdocs/testsite/index.html" instead of chmod the

[code]....

View 7 Replies View Related

General :: Accidentally Did A 'chmod +x Foo' When Meant To Do A 'chmod A+r Foo'?

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

General :: Access Files With Spaces From Command Line?

Mar 17, 2011

How do I access files with spaces from the command line?
for example I want to go to a file called "New File" and let's say is in Downloads/Books/(and here is the file)
how do I input the space since the command line doesn't recognize it?

View 2 Replies View Related

Programming :: Handle Files With Spaces In Their Names In Bash?

Apr 1, 2011

*I'm using Ubuntu 10.10

My issue is I can't handle the files with spaces in their name, I've donde the below script to print each file found inside folder and subbfolders with "find".

I would like to "ls" to each file found with its complete path and with its basename too.

Code:
files=$(find . -type f)
for each in "$files"
do
ls -l "$each" # 1rst option I've tried to list with full path
ls -l "$(/bin/echo "$each")" # 2nd option I've tried to list with full path
ls -l "$(/bin/echo $(basename "$each"))" # 1nd option I've tried to list with it basename

[Code].....

How can I list "ls -l" in both cases (with full path and with basename) when there are files with spaces in their name?

View 6 Replies View Related

General :: Using Chmod(), Function To Set Permissions For My Files/directories?

Feb 16, 2010

I am using chmod(), function to set permissions for my files/directories.How can I set -R flag for it???

View 4 Replies View Related

Fedora :: Chmod 666 Makes Files And Folders Invisible?

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

General :: Bash - Rename Files With Spaces Using System Shell?

Jun 8, 2011

I named a number of files with spaces in them, and I want to replace the space with "_". However, every time I write a command in the shell with the file name (eg "Spring 2011"), the shell doesn't recognize the file or directory. What can I do about this? Is there any way to use the unicode character for a space?

View 5 Replies View Related

General :: Chmod Doesn't Change Permissions On Files In Subdirs

May 15, 2011

I have a Qnap 219p NAS to which I have connected a USB external harddrive. I can access the external harddrive from my windows box using the network share, but at first i couldn't access the folders. The permissions set in the NAS GUI for the external drive is correct and are identical to the permissions set to the 2 internal drives.

I ssh'ed to the nas and used 'chmod -R 770 /share/external/sds1' - this granted me access to the folders, and some files. I can open all files in the root, but if I go just 2 folders 'deeper', i can't open the files in this folder, and in the folders after that.

In ssh, if i navigate to the folder wher I cannot open the files and use 'ls -l', i can see that the permissions (770) hasn't been applied to these files. How can I get chmod to apply the 770 permission to all files, folders, subfolders and files in subfolders etc., without having to chmod every folder one by one?

View 8 Replies View Related

General :: Keep Chmod On Folder / Sub-folder And Files?

Nov 3, 2010

I got a folder that I transfer stuff to all the time. the folder is in chmod 775 but when i upload folders and files, they are given chmod 700, but i want it chmod 775 everytime i upload something. so far i have logged in to my linux computer and did a chmod -R 775 to the folder every time i uploaded something to it. is there a function somewhere to make it 775 everytime i upload or can i have something run a script, so i don't have to go in and write it everytime i upload something?

View 2 Replies View Related

Ubuntu :: Chmod 700 On The Whole Filesystem?

Dec 11, 2010

Well I did something really stupid:sudo chmod 700 -R /Why? because it's late and I'm tired and somehow thought it was only on my current dir...Is this somehow fixable? I don't get my usual loginscreen so I guess through an tty?

View 9 Replies View Related

Ubuntu :: Delete Some Of Swap Spaces And Just Keep One?

Nov 7, 2010

I got a few Ubuntu versions on different partitions and a few 10G swap spaces on my 1TB disc. Is it possible to delete some of these swap spaces and just keep one? Will any of them do the job for all Ubuntu versions?

View 1 Replies View Related

Ubuntu :: Spaces After Some Letters In Terminal

Aug 6, 2011

I have strange issue with ubuntu's terminal lately it's showing up a space after some letters such as " t l f j i " when I tried to write a command by any of these letters I have got it, this problem is preventing me to implement any correct command so is it pkg issue need to re-install or I have to do something ?my OS is ubuntu 11.04 natty with gnome unity GUI/ UTF-8 | all my fonts that are using on my machine is Arial.

View 9 Replies View Related

Ubuntu :: Chmod -R Doesn't Work

Apr 11, 2010

or at least, it doesn't seem to. for some reason, my .txt, .doc, .rtf, and other files that shouldn't have the execute bit set often seem to (i think i know why, but that's not important). it's my understanding that this command should, for example, remove the execute bit from all .rtf files recursively (that is, from .rtf files in subdirectories too):

Code: chmod -R 666 *.rtf i've read help and the man page for chmod, and it seems that -R switch should make chmod work recursively, but it only alters files in the present working directory. could someone point out what i'm doing wrong?

View 9 Replies View Related

Ubuntu :: CHmod And File Permissions

Dec 10, 2010

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.

View 5 Replies View Related

Ubuntu :: Can't Get Chmod To Function Recursively

Jan 12, 2011

it seems to me I can't get chmod to function recursively. I have a folder with a couple subdirectories in it and a few in each of those etc. Now, I want to give everyone read-write on all .c files. So, I typed in terminal:

Code: chmod -R 666 *.c However, none of the .c files in any of the subdirectories were touched, i.e. I could have accomplished exactly the same thing by typing

Code: chmod 666 *.c I did RTFM, and it seems that what I did initially should have been the ticket. What am I doing wrong?

View 2 Replies View Related

Ubuntu :: Flash Drive Won't Chmod?

Mar 20, 2011

I have been working closely to the Katana boot kit here recently, and this is bugging me. I am trying to use a new program to Katana called Forge. I have it on my flash drive, and I open the properties to make it executable, and when I click something it automatically changes back. I have tried the basic stuff, sudo nautilus.

View 1 Replies View Related

Ubuntu :: Chmod Doesn't Work?

Jun 20, 2011

I'm having problems with chmodding a NTFS directory. I'm having problems accessing the directory through samba because of some missing permissions, but when I try to set them, nothing happens.This is what I do:

Code:
root@proliant:/media# ls -l
total 32[code].....

I also tried to replace 'hdd.1' with '/media/hdd.1' and 'hdd.1/'

View 2 Replies View Related

Ubuntu :: Chmod Ugo+rwx / Not Able To Access The Directories?

Dec 19, 2009

I have an external fat32 hard drive. It already has some files on it. Now, I mounted it and it shows the owner to be root. fine. but when I change the permissions, it does not seem to change it. I am not able able to access the directories, even as root !.I was able to create directories, but "luckybackup" wan not able to write to it due to permissions. I take it the lucky backup is executing as root/ but even otherwise, if I do chmod ugo+rwx, why do the permissions dont change ? (no erorr message by chmod).
here is the stuff: (ext drive mounted at /seagate)

rootubuntu--seagate# chmod ugo+rwx *
rootubuntu--seagate# ls -l
total 128
drwxr-xr-x 10 root root 32768 2008-08-11 21:03 HPComputerKeyFolders
drwxr-xr-x 9 root root 32768 2008-08-11 21:02 Other
drwxr-xr-x 2 root root 32768 2007-04-06 18:27 Recycled
code....

View 3 Replies View Related

Ubuntu :: Type Spaces In Filenames In Terminal?

Mar 18, 2010

I'm trying to access a file and copy it to another location, but the drive name has a space. I'd like to rename that too.

I know that a % sign is sometimes used, but this didn't seem to work in terminal...

View 9 Replies View Related

Ubuntu Installation :: Why These Unallocated Spaces On Disk?

Jun 7, 2010

I installed last month using manual partitioning from the live cd and saw only today that I have these 2x 1MB unallocated spaces as shown in the screenshot. A notebook where I used the same manual partitioning method also has this. Any ideas ? I certainly don't want to reinstall as all is fine on both machines.

View 4 Replies View Related

Ubuntu :: Command To Remove Spaces From Filenames?

Aug 18, 2010

I have just switched to banshee as my media player and imported my films and music. Problem is, the video list is quite hard to read because all the video files have spaces in their names which are replaced by % signs, numbers and letters. I'm wondering if there is a command I can use in the directory that will automatically remove all the spaces from the filenames or better still, replace the spaces with hyphens or underscores?

View 6 Replies View Related







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