Server :: Mounting Windows Path - How To Handle Spaces
Dec 29, 2010Am trying to do a mount of a Windows folder onto Linux. The path has some spaces in it like //hostname/path 1/path 2/path 3. How I should handle this?
View 6 RepliesAm trying to do a mount of a Windows folder onto Linux. The path has some spaces in it like //hostname/path 1/path 2/path 3. How I should handle this?
View 6 Replies*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?
trying to write my thesis in Lyx 1.6. It works fine on my windows laptop at home but Not on my work computer. The problem is, when i try to view it in pdflatex it comes with with: Lyx: file name error The directory path to the document cannot contain spaces
View 1 Replies View Relatedhaving bit of a trouble with path expansion of strings that contain some whitespace and wildcards First my script sources a configuration file that contains array assignments
Code:
...
BACKUP_TARGET_FILES[2]=/boot/config-* # no problems
BACKUP_TARGET_FILES[3]="/root/random dir with space/file*" # this is the problem
...
then later in the script I want to expand BACKUP_TARGET_FILES elements as below
Code:
IFS_DEFAULT="$IFS"
shopt -s nullglob
shopt -s dotglob
IFS=
[code]....
this code seems to work but I'm not quite satisfied with it. I'd like to get rid those IFS changes, but haven't found out a solution as of yet. Problem with default IFS seems to be that with it neither $pattern or "$pattern" work; it either interprets pattern as multiple words (because of spaces) and so expands to wrong paths or it ignores * because it's within quotes.
I have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup
View 7 Replies View RelatedMy question is that I have a handful of servers, Server 1 is a Suse Linux machine and Server 2 is a Windows Server 2003 machine. I can mount and access the files/shares on the Linux machine no problem but when I come to using the Server 2003 shares I encounter problems ... here is a snip of my fstab ...
Code:
//10.0.0.20/applications /myfolder/applications cifs username=user1,password=pass1,auto,uid=user2,gid=group2,0 0
user1 and pass1 is the username and password of a user (local to the remote machine) and user2 and group2 are taken from the machine performing the mount.
Am I doing it right, is that how I should be mounting a share from a (Domain enabled) Windows Server 2003?
My configuration is:
Linux Ubuntu 9.4 - samba client ,
Windows XP machine - samba server (shared dir)
While trying to mount a windows xp ntfs share from Ubuntu 9.4 I am receiving a "Permission Denied error(13)" message.
However when using smbclient I can browse the shared directory successfully (meaning all login details + domain are correctly entered). I ran an ethernet sniffer on the windows side (the one hosting the share) and saw that it refuses a connection with STATUS_INVALID_WORKSTATION
I'm trying to mount a Windows Server 2003 share in Fedora 13. With Fedora 8 and with RHEL 5.5 this works properly, but not with Fedora 13.
The mount point I'm using is /usr/eg
The symptoms are: Nautilus (the file browser) does not display the mount in the places or tree as a mounted drive. Using the file broser I can browse under file system down to the files on the server Programs cannot find the files under /usr/eg ie the files on the server.
Here is my fstab entry:
//192.168.1.40/eg /usr/eg cifs auto,user=<user>,password=<password>,rw,uid=500,gid=500,file_mode=0774._netdev 0 0
I am having issues mounting a share on a Windows 2008 Server from all of our Redhat 4 machines. I am trying to back up files before wiping and upgrading them to 5. I will try and post as much information that I gathered after trying different things. I am a newer hire for this network and a Linux newbie.
The scenario is this:
1. Windows 2008 Active Directory.
2. Redhat Enterprise 4 machines
I have root access and I tried entering at the terminal:
" smbclient -L "servername" -U "username"
get the "password" prompt I enter my password and get:
"session setup failed: NT_STATUS_ACCOUNT_LOCKED_OUT."
I check event viewer on the 2008 box and last week was seeing:
Event ID: 4625
Keywords: Audit Failure
etc, etc
"Account for which Logon failed:
Security ID: NULL SID
Account name: anonymous
Account Domain:MYGROUP
Failure Information:
Failure Reason: Uknown user name or bad password
etc, etc
Now the last couple of days the audit failures have not shown up on the 2008 Server box even though I attempted to log in.
The end users used to just use Konquerer smb://"servername"/"share" and it worked but for some reason starting last week this no longer works. Nothing was changed that I know of, this network is in a sealed classified environment with no external access. All additions to the network are monitored and no unapproved software is installed. The lab is in a vault type environment and only a few people know the combination and alarm pass codes so no chance of somebody adding stuff without me knowing it.
I would think with the locked out message it was an issue with my user account but that works fine on the Windows side so I tried my Linux credentials with no success when trying to mount the directory.
Is there something anybody can suggest Linux or Windows side to check? No user accounts work connecting to the Windows share.
p.s. I am aware the above command is only to see the Windows shares but i get the same thing when I just try and mount using CIFS or SMBFS.
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.
I am having permissions errors every time I try to mount a windows host. I have a linux server and all the windows computers can see that computer and its files, but we wanted to start backing up the linux machine to one of our other computers. so I tried to mount one of the computers. here is the sequence of events:
Code:
$mount -t cifs //192.168.1.194/Admin$ /mnt/Anita-comp
password: (I have no password so I left it blank)
Mount error (13): Permission Denied
I tried all sorts of passwords we use around the office and none of them worked.
I then decided to try mounting one of our other computers. this one looked like it worked fine. no error messages at all. (I left password blank) so I look in my filesystem and the mounted drive is not in the /mnt/Anita-comp file. What gives?
A few days ago I got this Ubuntu box (9.10) to connect to the Windows network in our house. Sharing printers and files. Life was good. But today, Places > Network > Workgroup tries to connect for about a minute then I get a "Unable to mount locations, Failed to retrieve share list from server" error. The only thing I recall changing at around the same time was adding Wine.
View 6 Replies View RelatedI had installed Ubuntu 10.04 on dual boot mode with Windows 7, I had to migrate from windows 7 to XP & again to windows 7. Each time after installation I updated grub. Last time while updating Grub PC went Down due to power failure. I update grub after the supply was resumed and it was successful.
On login I am facing a weird problem, My windows Drive are not appearing in Ubuntu. To access the drives I have to Plug a Pen Drive and access them first from an Application otherwise the don't even appear in Places drop-down list. If I don't plug Pen Drive they don't appear in Applications.
The other problem is that Disk utility shows space unallocated, allocated & Free above the physical capacity of Hard disk. My Hard disk is of 160 GB, Disk utility Shows Unallocated Space 18446744 TB. The Default Partitions made by me are 26GB, 14GB & others of 40 GB each.
HOW SHOULD I PARTITION 362 Gb, and can virtual box on linux handle windows games and mmos. Including maplestory?
View 1 Replies View Related1.- What would be the simplest way to port and handle tarballs downloaded in windows, to a CentOS 5.4 based system (Elastix in fact), but without graphic mode (that is, using only the CLI)? The system has network contection, usb interfaces and a working DVD-RW attached.
2.- If the answer is Samba, how I get Samba working on my system?
does anyone know how can I use locate with rm? rm `locate "some file"` does not work when my pathnames occasionally contain:
-spaces and other characters (like + or possibly others that need escaping)
-greek characters
how can I grab line-by-line the output from locate and wrap quotes"" around the paths?
When I try to save a new or edited file via OO I get the following error
Error savind the document doc: /c/windows/doc.odt does not exist
I assume that it is a mounting error but due to my newbieness dont know how to confirm this. I see that I can not copy to the windows drives via Dolphin either.
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
I have a windows PC which I would like to dual boot with Ubuntu. However, I have some very important documents scattered all over the "My Documents" folder. I don't want to move these to the linux partition manually because of the possibility of misplacing, deleting or otherwise doing something that could alter these files. (They happen to be notes that I make on Biology).
My plan was to mount the windows partitions on Ubuntu and then use symbolic links to navigate to the "My Docs" folder on the windows partition.
This is the main question: It is possible to mount hard drives and then make an existing folder on Ubuntu (for example the /home/user/Documents folder)point to the "MY DOCUMENTS" folder on windows? (By "point to" I mean something like a symbolic link. So, for example, by double clicking on the /home/user/Documents folder, the "My documents folder" on windows should be opened. )
what kind of dist/software would you recomend to use for a a vpn server that can handle 10 diffrent nets each seperated from the other if i connect with user1 i get on net1 and user2 gets on net2 the vpn server is always connected to the other location at all time i just want to be able to conenct in to my the net i want to the reason i dont want to go Destination is that the vpn server is gonna handle otherstuff that the nets will be conencted to input
View 3 Replies View RelatedI was just wondering what the best approach is to allow mobile device sites on my web server is?Its an apache 2 server running on Centos and I am just very curious as to how to best present a site just in standard output for a mobile site, ie no server side programming or scripts (but would like to do some eventually).I actually have someone asking for someone on his development team and would love to be that person with that attribute lol.
View 2 Replies View RelatedFrom my main Postfix SMTP heads, I am sending just a couple select emails (primarily support emails) off to a server that receives them and pipes them into the support software. So far this totally works perfectly and I am pretty happy with the configuration. However, in order for sendmail on the support server to receive those emails I have to place them in the virtusertable of course, but I also have to activate their domain in the local-host-names file. That then causes sendmail to consider itself as the destination server for that whole domain.Is there a way to make sendmail receive email for select addresses without making it think it's the server for the whole domain? This server is only receiving email from two specific smtp servers, so I wonder if I could just permit relaying? Wonder if that would just cause a giant loop though.
View 1 Replies View RelatedHow do clients handle offline syslog servers?Will the log files be buffered locally to be sent to the syslog server when it comes back online, or will any log data generated during downtime be lost in cyber space?
View 1 Replies View RelatedI have a cpanel server(not sure if that matters). I wanna transfer to another cpanel server. The size is about 3TB, I dont have enough on the hard drive to zip then transfer that way, and cpanel cant handle moving such a large migration.Been searching on the net to find an answer but everyone saying to backup then migrate. whats best tar or rsync or somthing else.
View 3 Replies View RelatedMy intention is to have EngineX on the frontend handling all static files, and Apache + mod_php in charge of handling PHP requests. I have optimized nginx to be as efficient as possible in handling static files, but have very little experience with Apache. Since Apache would only be processing PHP requests, would the standard Apache optimization guides suffice or would it best to configure it differently?
PS: this is a dedicated file server, the database is hosted separately.
Here's the text from the serial console before I rebooted:
BUG: unable to handle kernel paging request at ffff8140320234b8
IP: [<ffffffff802b0a13>] dentry_iput+0x26/0x9d
PGD 8063 PUD 0
[code]....
My root server is using CentOS release 5.2 (Final), kernel 2.6.26.5-rootserver-20080917a, SMP, 64-bit This Oops happened yesterday and before that it happened on March 14th of this year, and before that on January 31st of this year, so a repeating pattern. On the January 31st Oops, I just rebooted. On the March 14th Oops, I reformatted the two swap partitions as follows: mkswap -c /dev/sda2; mkswap -c /dev/sdb2 On this last Oops, I turned off the swap for 24-hours, then decided to turn it on again after doing the above mkswap again. During the previous uptime, I had dumpcap packet capture running, but this last reboot, I'm not going to run it.
On Linux, I can access my joystick with the following path: /dev/input/js0. Is there a similar way I can access my joystick on Windows?
View 2 Replies View RelatedAfter installing ubuntu 10.4 netbook remix edition to my laptop, I then found that GRUB hadn't installed at all, and it went straight to windows 7 each time. So I rebooted from my live-usb and got into the terminal, and typed
Code:
sudo grub-install /dev/sda5
Which then gives me
Code:
No path or device is specified.
Try `/usr/sbin/grub-probe --help' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
From the command shell, how do I get to a network connected drive?I do a "Connect to Server" -> "Windows share" and connect to one of my Windows XP systems. Everything is fine. But how do I get to that drive from the command line prompt so I can do terminal commands or open files programmatically (hmmm is that spelled right?) Thus far, I see no way to do it.
View 5 Replies View RelatedI am attempting to mount an NFS share that has been setup on a Windows Storage Server 2008 (R1). Initially, I could not even mount the share, though it would show up using "showmount -e <server_ip>". After adding the "ANONYMOUS LOGON" user to the NTFS permissions and granting the "Full Control" permission, I was able to successfully mount the share and read from it. However, I cannot write to it. The NFS share is set to allow anonymous access, UID 0 and GID 0. The appropriate host is listed in the NFS Share Permissions with Read-Write permissions, and ANSI encoding. Root access has also been allowed. I also tried granting the "Everyone" user full control in the NTFS permissions as well. See screenshots and console quote for clarification if needed.
View 1 Replies View Related