Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › ubuntu: folder sharing problems
New Posts  All Forums:Forum Nav:

ubuntu: folder sharing problems

post #1 of 13
Thread Starter 
Basically i want to share the media hard drive on my desktop pc with my laptop, both are running ubuntu.

I have set up the sharing between the 2 sucessfully, however only for files on the hard drive that my ubuntu installation is on, seeing as how this is only 80Gb there is relativly little on here, most of my media is on...well the media drive.

My problem is that because the media hard drive was formatted in windows (boo) when it is mounted by ubuntu the permissions belong to root. Is there a way to get around sharing another user's files and folders in ubuntu, or am i going to have to log on as root to set up the sharing (which i understand can be dangerous)?

Thanks, please hurry with the replies as my laptop has no music on it

Boyd
post #2 of 13
you could always burn them to a CD/DVD, but i guess you would have done that if u wanted to Otherwise if you have a Gmail account, u can just email them to yourself...

As for your problem though, i'm not sure. I'm sure someone here can help...
Blitz II
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 750 MSI P55-GD65 GTX 660Ti 4GB Corsair Dominator 1600MHz 
Hard DriveOSMonitorKeyboard
600GB (2x300GB Velociraptors RAID0) Windows 10 24" ASUS VW246H Logitech Illuminated 
PowerCaseMouseMouse Pad
Corsair 750HX Lian Li Lancool PC-K62 G5/DeathAdder Desk 
Audio
Yamaha H80M + HS10W 
  hide details  
Reply
Blitz II
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 750 MSI P55-GD65 GTX 660Ti 4GB Corsair Dominator 1600MHz 
Hard DriveOSMonitorKeyboard
600GB (2x300GB Velociraptors RAID0) Windows 10 24" ASUS VW246H Logitech Illuminated 
PowerCaseMouseMouse Pad
Corsair 750HX Lian Li Lancool PC-K62 G5/DeathAdder Desk 
Audio
Yamaha H80M + HS10W 
  hide details  
Reply
post #3 of 13
Thread Starter 
Quote:
Originally Posted by Microsis View Post
you could always burn them to a CD/DVD, but i guess you would have done that if u wanted to Otherwise if you have a Gmail account, u can just email them to yourself...

As for your problem though, i'm not sure. I'm sure someone here can help...
i suppose i could, but it's a 250gb drive with 60Gb of music on it, still it could be feasible...just time consuming.
post #4 of 13
The problem with doing things in root is usually attributed to new users who don't know what they are doing, or just do something randomly, which results in having negative effects.

Things done in root, like expanding an archive under root, will make that archive belong to root. That way, you can run into some major problems doing normal things if you run as root most of the time.

chmod is a pretty powerful little command for situations like this. This is a fantastic little site explaining the uses of chmod, and how to perform them.

What is the output of
Code:
ls -l /the/location/of/the/files
You could do something similar to
Code:
chmod o+rw /home/joe/Music
I think it is similar to that, please correct me if I am wrong. That code (I'm pretty sure) would change the permissions of the Music folder to the "o" (other users), giving them rw (read and write) permissions.

EDIT

You may actually do it manually for each file, if it doesn't work on folders. I'd also download Ubuntu Tweak and add all of the scripts to the right click menu, that way you could "Browse as root", as well as do mnay other things, but I think Ubuntu Tweak is the most practical... On second thought, I'm pretty sure that wouldn't work over a Network Connection, but who knows. It's really a matter of a password I think.

Ubuntu Tweak is great in general, I'd keep it even if it didn't work
Edited by Pap3r - 6/28/08 at 7:25pm
Mod
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 3390MHz Asus P5Q XFX 8800GT Alpha Dog Edition 767/1833 2x1g OCZ Reaper DDR2 
Hard DriveOptical DriveOSMonitor
WD 160G SATA Light-on Lightscribe Drive Ubuntu Syncmaster 730B 
KeyboardPowerCaseMouse
G15 Rosewill 550w SLI TT Tsunami MX518 
Mouse Pad
None 
  hide details  
Reply
Mod
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 3390MHz Asus P5Q XFX 8800GT Alpha Dog Edition 767/1833 2x1g OCZ Reaper DDR2 
Hard DriveOptical DriveOSMonitor
WD 160G SATA Light-on Lightscribe Drive Ubuntu Syncmaster 730B 
KeyboardPowerCaseMouse
G15 Rosewill 550w SLI TT Tsunami MX518 
Mouse Pad
None 
  hide details  
Reply
post #5 of 13
Quote:
Originally Posted by Pap3r View Post
The problem with doing things in root is usually attributed to new users who don't know what they are doing, or just do something randomly, which results in having negative effects.

Things done in root, like expanding an archive under root, will make that archive belong to root. That way, you can run into some major problems doing normal things if you run as root most of the time.

chmod is a pretty powerful little command for situations like this. This is a fantastic little site explaining the uses of chmod, and how to perform them.

What is the output of
Code:
ls -l /the/location/of/the/files
You could do something similar to
Code:
chmod o=rw /home/joe/Music
I think it is similar to that, please correct me if I am wrong. That code (I'm pretty sure) would change the permissions of the Music folder to the "o" (other users), giving them rw (read and write) permissions.
It should be
Code:
chmod o+rw /foo/bar
or just
Code:
chmod +rw /foo/bar
+ adds permissions, - removes them
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
post #6 of 13
Oops! Good catch Thanks! I'll edit that right now. FYI boyd, don't randomly go punching in codes that people give, unless you know it's correct, or it's form a reliable source.
Code:
sudo ls -l /blhablha/aslkhd | grep "blah" && rm -rf /blah/blah && chmod +x
^^ Randomly written code, don't know if it would work or not, but see how easy it is to hide an rm -rf in there and delete random files?

EDIT

Yeha, now that I think about it rabid, chmod +x gives executable permissions... lol
Edited by Pap3r - 6/28/08 at 7:26pm
Mod
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 3390MHz Asus P5Q XFX 8800GT Alpha Dog Edition 767/1833 2x1g OCZ Reaper DDR2 
Hard DriveOptical DriveOSMonitor
WD 160G SATA Light-on Lightscribe Drive Ubuntu Syncmaster 730B 
KeyboardPowerCaseMouse
G15 Rosewill 550w SLI TT Tsunami MX518 
Mouse Pad
None 
  hide details  
Reply
Mod
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 3390MHz Asus P5Q XFX 8800GT Alpha Dog Edition 767/1833 2x1g OCZ Reaper DDR2 
Hard DriveOptical DriveOSMonitor
WD 160G SATA Light-on Lightscribe Drive Ubuntu Syncmaster 730B 
KeyboardPowerCaseMouse
G15 Rosewill 550w SLI TT Tsunami MX518 
Mouse Pad
None 
  hide details  
Reply
post #7 of 13
To be clear
Code:
chmod o=rw
will grant read/write permissions, but it sets the permission to RW and only to RW, so if execute permissions were previously enabled they will be disabled afterwards.
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
post #8 of 13
Thread Starter 
thanks alot, you two. Reps all around.
Now i have music on my laptop, and i'm happy
I also had to add a line to smb.conf but that was easy, just copy/paste from the error message i got.
post #9 of 13
Quote:
Originally Posted by rabidgnome229 View Post
To be clear
Code:
chmod o=rw
will grant read/write permissions, but it sets the permission to RW and only to RW, so if execute permissions were previously enabled they will be disabled afterwards.
Wouldn't
Code:
chmod +rw /foo/bar
only grant read/write permissions to the current user, which in this case I believe is root? He'd have to run sudo before it if he were to run it from a normal user, as well as the other commands.

r = read
w = write
x = execute

^ Just for reference

EDIT

Also completely off-topic, but what is the command for the perimeter for cutting? I mean, grep "blah" will show only lines with blah in them, but what is the command for cutting those at the selected points? ___ d"b" c"3" or something.. I'm having a massive brainfart.
Mod
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 3390MHz Asus P5Q XFX 8800GT Alpha Dog Edition 767/1833 2x1g OCZ Reaper DDR2 
Hard DriveOptical DriveOSMonitor
WD 160G SATA Light-on Lightscribe Drive Ubuntu Syncmaster 730B 
KeyboardPowerCaseMouse
G15 Rosewill 550w SLI TT Tsunami MX518 
Mouse Pad
None 
  hide details  
Reply
Mod
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 3390MHz Asus P5Q XFX 8800GT Alpha Dog Edition 767/1833 2x1g OCZ Reaper DDR2 
Hard DriveOptical DriveOSMonitor
WD 160G SATA Light-on Lightscribe Drive Ubuntu Syncmaster 730B 
KeyboardPowerCaseMouse
G15 Rosewill 550w SLI TT Tsunami MX518 
Mouse Pad
None 
  hide details  
Reply
post #10 of 13
Thread Starter 
Quote:
Originally Posted by Pap3r View Post
r = read
w = write
x = execute

^ Just for reference
yep, allready done [code]chmod +x ./FaH[/url] to make the folding @ home file executable. And now i know why, woohoo im learning the ways of linux!
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › ubuntu: folder sharing problems