Ubuntu Networking :: Sharing Directory, And It's Subdirectories?
Oct 20, 2010
I've been doing some file-sharing with Ubuntu. And I've noticed that the files only in the immediate directory is shared, the rest of the folders are shown in other PCs but access is denied. How can I share all the subdirectories in a folder without having to them manually?
View 6 Replies
ADVERTISEMENT
Nov 18, 2010
This question is very similar to this one except that I want to maintain the file's original subdirectories.
For example if I had
/temp/a/a.txt
/temp/a/a.jpg
/temp/a/b.txt
/temp/b/c.txt
/temp/d/d.txt
/temp/d/d.jpg
/temp/d/e.txt
/temp/f.txt
[Code]...
View 2 Replies
View Related
Aug 1, 2010
I've been trying for what seems like forever to share a single directory with only two authorized users and I just can't get the permissions right.
Running Ubuntu 10.04 desktop as home file/print server.
Two users: chris and gretchen
Directory to share: Music
Music resides in chris' home folder.
I'd like to have full access for these two users and no access for anyone else. The challenge is that the best I can get for gretchen is read-only. What i've done so far:
Created user accounts for each
Created Samba accounts with passwords for each
Created a group called "family" and added chris and gretchen to it
Assigned the family group to the Music folder.
Shared the folder giving read and write access to family group.
chris seems to work ok but when gretchen access it from her snow leopard laptop she can't create a new folder. It should be noted that chris is also the admin account.
View 3 Replies
View Related
Mar 1, 2010
I've found several posts discussing how to do this in with the terminal, but none exactly fit what I am trying to do. And since I'm still very new, I was hoping for some help.
I have a parent directory called "Music." The subdirectories all start with "artist", some go further as in "artist/album/cd1". So right now the structure varies in the following ways code...
How can I move all the files (or the file types that I choose) to the parent directory "music"?
(By the way, for any who are interested, this is so that I can use an external hd with a PS3. ("playstation 3"--for anyone who was in my predicament searching the threads)
View 7 Replies
View Related
May 28, 2010
I need to write a script that is given a directory as an argument, and it prints the last modified file from that directory and all its subdirectories.
for example:
$ newest /usr/etc
--> /usr/etc/httpd/httpd May 28 12:16
If I had to do it only for the current dir, it would be easy...I'd probably use "ls -lt" and then show only the first line...
View 1 Replies
View Related
Aug 2, 2010
I'm having trouble figuring out how to list the contents of a directory and exclude any subdirectories.
View 5 Replies
View Related
Jan 24, 2011
1. How can you find all first level subdirectories under the current directory?
2. How will you show the last 100 lines of the file "foo.log"?
3. How will you Stream the contents of a the log file "foo.log" as it gets written to?
4. How can you grep for a pattern on a gzip'ed file? e.g., find "foo" in bar.gz
5. Find all lines in the file "foo" which DON'T have the pattern "bar"
6. Your web server is running very slowly. If you can login to the server, what command will you run to find out cpu and memory use?
7. Extract the file foo which is a part of the tar'ed, gzip'ed file bar.tar.gz
8. You attach a usb disk to your linux desktop, but it does not show up. How can you get more information about the error?
9. What is the secure way to login to remote systems?
10. What is the difference between TELNET and SSH?
11. Given a file 'a' with the following permissions -rwxrwxrwx 1 rohit rohit 0 2011-01-24 13:30 a Change its permissions such that it is only readable and writable by its owner, not accessible by anybody else in the group and only executable by the world
12. Difference between using ' and " for quoting a string / command in a shell
13. In the attached text file (test.txt) replace all occurrences of 'red' with 'yellow' without using an editor (i.e. from the command line)
14. How would you suppress output written to stderr by a command
15. Meaning of the #! notation in scripts e.g. #!/bin/sh
16. What is the output of the attached shell script test.sh Scripting questions, all based on the attached file access.log. Use one of perl, python, ruby, or shell scripts to solve these questsions. If any answer is obtained using just the command line, please include those commands as well.
17. How many accesses were made between 10am and 11.30am on Jan 24, 2011?
18. How many unique IP addresses accessed this server?
19. For every IP address which accessed this server, output a report showing number of hits for every type of HTTP status. For e.g., IP 192.168.1.20 has 164 hits with status 404 and 1690 hits with status 200.
View 8 Replies
View Related
Aug 5, 2010
I have .jpg files in many subdirectories from where I need to copy all the images from all the sub directories and paste them to a specific directory.I have used `cp -rf *.jpg media/sik/` which only copies the .jpg files of the directory in which I was working.
View 5 Replies
View Related
Feb 7, 2011
I am a noob and I am trying to display a count of the number of subdirectories in a directory. I have been able to use find -type d to list directories and subdirs but I want a numerical value of dirs and subdirs. I know ls -l gives a count but when I try ls -l -d all it shows is "." I also have tried a combination with the -R option but nothing seems to be working for me.Please forgive my ignorance but I am working on a script for class and this is the first step.
View 3 Replies
View Related
Dec 26, 2010
In reading the rsync man page and browsing a lot of websites, I ended up a bit confused, or maybe it was just too much eggnog. Anyway, to exclude a directory "videos" with everything in it, which is /home/user1/camera/videos and I'm rsyncing the whole user1 directory to an external drive
[code]...
View 1 Replies
View Related
Feb 11, 2010
I'm able to use the following to remove the target directory and recursively all of its subdirectories and contents. find '/target/directory/' -type d -name '*' -print0 | xargs -0 rm -rf
However, I do not want the target directory to be removed. How can I remove just the files in the target, the subdirectories, and their contents?
View 4 Replies
View Related
Aug 10, 2010
I need to give a user write access to /var/www and its subdirectories. The current directory permissions are as follows:rwx r-x r-x root root
I added the user to the root group but that didn't seem to help.I read I could chmod -R to change the access to write for the www directory and subdirectories but I don't want to change things and mess up the website. How can I give the user access to write to the www directory and subdirectories without messing anything up? Would changing the www directory group owner to his group cause an issue anywhere?
View 3 Replies
View Related
Mar 24, 2010
I am trying to write a very simple script that will go to every subdirectory of a single directory and run a command (lets call it make_ndx).I know I can write this the long way with in a text document with something like:
cd /"the directory"/"the 1st subdirectory"
make_ndx
cd ..
cd "the 2nd subdirectory"
cd ..
Alternatively, I also tried: for i in 'find /path/somemorepath -type d -mindepth 1'; do cd $i; make_ndx -f *.gro; done which returns me with the error cd: find: no such file or directory. But if I run the find command by itself to test if I am calling the right directories, it gives me the exactly the output I am looking for. Any ideas? Should I just write the find results to a file and loop through the contents of the file (which seems a little bit like overkill) or am I just making a simple typographical mistake and I am just not seeing it?
View 7 Replies
View Related
Nov 7, 2009
I know this might seem stupid, but I can't seem to connect my 2 PCs to share a folder (directory)
The both have Fedora 11 and they are connected through a Linksys WRT54G (one on LAN and the other on WiFi)
View 6 Replies
View Related
Oct 11, 2010
How can I allow normal users to mount a tmpfs under any subdirectory owned by them?
View 3 Replies
View Related
Jul 20, 2010
This should be a quick one. I'm trying to backup a single directory and it's subdirectories on my Lucid Server to a freenas box across my network. This is what I'm using to do that..
rsync -r -a -v -z * --delete freenas:dSIBackups It almost works perfectly except for one problem. When a file is deleted at the source, this command doesn't seem to delete it on the receiving end. I assumed that the --delete would do that but aparently not. Can anyone think of a reason that this would happen?
View 3 Replies
View Related
Jun 10, 2010
I need to copy all subdirectories and files from one directory to another ever 5 minutes or so, with the old data automatically being overwritten with the new data. I'd also like this to run at startup. Is there any way this can be done? If so, what program would I need to schedule the automation and what is the command line I would need.
View 2 Replies
View Related
Jun 13, 2011
I'm trying to setup an Apache server on my computer which will allow browsing of files in a specific directory and subdirectories, without needing any sort of authentication.
I've got the Apache2 server up and running through yast, and everything works fine as long as I try to point it to the /www/htdocs folder. However, I want to point it at another folder, which is on another partition. This partition is formatted as NTFS, if that matters at all (here's some background on some permissions issues I had with the NTFS partitions recently).
When I change the "Directory" setting in the Yast http server configuration utility to the directory on the NTFS partition I wish to use, attempting to access the server results in the following error:
Code: Access Forbidden: You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster.
Error 403
192.168.1.100
Mon Jun 13 23:43:29 2011
Apache/2.2.17 (Linux/SUSE)
View 4 Replies
View Related
Jul 7, 2011
Im using WPA with a TKIP pre-shared key...Can a client pc im sharing my key with access my files if im not file sharing? Router config?
View 2 Replies
View Related
Aug 8, 2009
So, let's say there was a website www.qwerty.com, which is completely appropriate if not necessary except for the asdfg subfolder (www.qwerty.com/asdfg), which contains,say, pornographic material I want blocked. Is there any way to block "asdfg" without blocking the entire domain (www.qwerty.com)? I already tried editing my hosts file, but apparently that only works for whole domains.Also, while we're at it, can the hosts file be used to actually block IP addresses, or just domain names (so if I wanted qwerty.com with IP of 128.127.126.125 to be completely blocked, but know my family or employees are little smarter than that, I could add the line "0.0.0.0 128.127.126.125" to prevent all access to that website)?
View 3 Replies
View Related
Jul 28, 2010
I have samba set up and working quite well, but I have several shared directories containing multiple directory trees, and for some reason the sub-directories of the shared one are not shared.Is there a way do set them to shared automatically rather than having to go through and set share for each and every one?
View 4 Replies
View Related
Sep 29, 2010
I have 10.04 and have samba running.
Samba is remotely administered with webmin and aim to setup home directory sharing. I am however having some trouble getting this to work.
I was of the understanding that home directory sharing allows me to create a user in ubuntu, which samba will then pickup and offer it up as a share.
My smb.conf looks like this..
Code:
#======================= Global Settings =======================
[global]
unix extensions = no
share modes = no
security = user
[Code]....
Essentially I've found this works providing I give the samba user a password after it is automatically created using the 'Configure automatic Unix and Samba user synchronisation' option in webmin.
However if I move the location of this home folder off the main drive i.e. /home/username I get turned away at attempted login.
I've tried specifying the path in [homes] using the path = /media/discarray, but this seems to break authentication somehow.
View 2 Replies
View Related
Dec 13, 2010
My friends and I want to have a central server where we can share our files. I would like it to be accessible to each client (friend) by simply logging onto their VPN client and have the shared directory appear on their "My Computer" as a hard drive. It will be a Debian Lenny server that is accessed by Windows computers, and they'll be able to read and write whatever they like.
We do this same thing at work, but I don't know where to start. To access the file server at work from home, I just run our VPN client and I have access to all the drives I do at work. This is exactly what I'd like to do, but at my place. I'd like to know what applications I need to get to make this realizable, like if I need to use Apache, Samba, OpenVPN, etc. I can learn fast, I just need direction.
Eventually I want to evolve this project into something more, but I figured this would be a good starting point in learning server applications.
View 3 Replies
View Related
Jul 17, 2011
To be clear: I searched and used the button above to find similar topics, but my solution wasn't there.
I was very busy with work the past months, so my quest to become a Linux Crack hasn't borne too many fruits yet So I am still a ...
So here is my problem:
I have 3 users on my CentOS VPS:
root
user1
user2
For security reasons I only log on via public key, root access is denied. Admin is user1. user2 is a regular user.
I want user1 to be able to additionally access user2's home directory, when I log in via SFTP using FileZilla, because occasionally I want to move files from user1's home directory to user2's home directory. But I need user2 to still be able to connect to his home directory via SFTP, too (everything I tried up to now always "breaks" his account).
How do I do that?
user1 is in the wheel group in order to be able to become root if necessary.
user2 is in the user2 group.
I tried adding user1 to the user2 group, but that alone doesn't seem to give him access to user2's home directory.
I know this must be about rights and permissions, maybe group permissions? I sit on it about 8 hours now and don't see no light at the end of the tunnel. When I think I got it I suddenly can't log in with user2 anymore (neither PUTTY nor FileZilla).
View 4 Replies
View Related
Nov 28, 2010
I have just installed Ubuntu desktop and I am using this pc as a file server. I have already installed Samba and have it operational and viewable by my windows computers. Now the problem is that I have 2 hard drives and the way that I have Samba set up it is sharing my home directory which is wonderful but my windows computers do not have access to the second hard drive. I search for several hours this morning trying to figure out how to do this but cannot figure it out.
View 7 Replies
View Related
Jan 16, 2011
I just want to use Internet Connection Sharing (ICS) to connect to the internet. I have done a massive amount of troubleshooting, but some of it seems to contradict itself, and the only two things that I know for sure are that it used to work, and that my Ethernet cable is not the problem. When I use Terminal utilities like ifup and dhclient it seems that it can not determine IP information, but when I try to put it in manually, the "Apply" button grays out right after I finish typing it in. When I try to connect normally, in KDE or GNOME, the icon acts like it's connecting, then instead of having the connected icon, I receive a notification that "the network has been disconnected", and it goes back to the disconnected icon.
Oh, and by the way, I know that I could probably find a workaround, but I have limited resources, and this used to work. The Linux is a Dell desktop with Fedora 12 and the Windows is a Windows 7 HP laptop.EDIT: I hope that I didn't mess something up, but I accidentally used system-network-config to try putting in the IP address there, and ended up changing it back to the original settings, but the computer is now calling it Auto Ethernet in the taskbar icon, although sudo iwconfig in the terminal still calls it eth0.
View 7 Replies
View Related
Dec 18, 2010
I have a server with Fedora 13 with which I would like to get NFS working. I have looked up multiple howto's and tutorials, but I'm having a problem not addressed by any of them.Official how-to, another how-to, and another how-to.I have verified that nfs-utils, nfs-utils-lib, portmap, and system-config-nfs are installed and running. I have verified that I have, in fact, shared the directory that I want to share, and that the proper permissions are set.
I had to go through some gyrations to get the Belkin wireless N router to allow my server to have a static IP. However, I can ping the server from the nfs client (a toshiba satellite running mint 8), and vice versa. I have (for now) disabled firewalls on both computers. I think I have disabled SELinux on Fedora 13 (for now).When I attempt to connect to the server from the client, the output looks like this:Quote:
aragorn ~ # mount -v 192.168.2.101:/test /home/kelev/test/
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Sat Dec 18 12:21:09 2010
[code]....
View 7 Replies
View Related
May 16, 2010
I've been looking around for something that can help me share files with my notebook with lucid and my desktop with windows xp...i could only find help in setting up ubuntu... i dont know how to connect to XP, setup xp for file sharing with ubuntu and share my files.
View 2 Replies
View Related
May 18, 2010
Ive got my laptop hindered up to my xbox 360 it has windows 7 and Ubuntu 10.04. i realy want to get rid of windows and the only reason i keep it around is because ics sharing works realy well for connecting to xbox live.
I recently discovered that you can (ics) with ubuntu which is awesome only problem is
i cant figure out how to set it up to stop it having moderate NAT so i can play games that require an open NAT. its probably due to the ports not being fowarded properly or somthing and/or the face that my xbox needs a static ip placed out side the routers firewall on the DMZ setting .
View 4 Replies
View Related
May 20, 2010
I have a MediaGate MG35 which allows me to play movies and things via my network from my computer. This worked fine with Vista, but when I upgraded to Windows 7 the samba sharing changed and my MediaGate was no longer able to gain access to my shares on 7. My solution was using VirtualBox with Ubuntu. This worked fine on 9.10. I did this by creating a folder in my /media folder called windows-share, giving it a share called movies with Guest access. and then adding the following line in the rc.local file to mount the windows share though VirtualBox:
mount -t vboxsf movies /media/windows-share/
(movies being the name I gave the shared folder in VirtualBox) So I had to do was start the VirtualBox and everything was setup without me having to do anything. This then allowed me to get to my movies saved in windows with my MediaGate. This worked great. I've now got Ubuntu 10.04 on a new VirtualBox. I've set up everything the same, but when I try to access the shared folder, it doesn't work. If I try to access it with windows, it says that the share is not accessible or I don't have access. This ONLY happens to the folder that has been mounted to, any other folder I share works fine.
View 1 Replies
View Related