Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Operating Systems > Linux, Unix

Reply
 
LinkBack Thread Tools
Old 06-28-08   #1 (permalink)
Audiophile
 
boydyboyd's Avatar
 
intel nvidia

Join Date: Jan 2008
Location: England-land
Posts: 910

Rep: 63 boydyboyd is acknowledged by some
Unique Rep: 53
Folding Team Rank: 209
Hardware Reviews: 2
Trader Rating: 1
Default ubuntu: folder sharing problems

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
__________________
Quote:
Originally Posted by RobRedbeard - Why he overclocks: View Post
I do it for the all the hot women and general rockstar lifestyle.

System: Sig Rig
CPU
Q6600 3.6 (1.5v)
Motherboard
Asus P5B Premium
Memory
2GB Corsair XMS2 800MHz
Graphics Card
EVGA 8800GTS 640 SSC
Hard Drive
830Gb
Sound Card
E-MU 0202 USB
Power Supply
Enermax 535w
Case
Antec P180
CPU cooling
Zalman Reserator/Zalman Gold Water Block
OS
Vista 32
Monitor
sony 19'' xblack + Samsung 22''

Last edited by boydyboyd : 06-28-08 at 09:45 PM. Reason: Folder Sharing in ubuntu
boydyboyd is offline I fold for Overclock.net boydyboyd's Gallery   Reply With Quote
Old 06-28-08   #2 (permalink)
Intel Overclocker
 
Microsis's Avatar
 
intel nvidia

Join Date: Apr 2008
Posts: 746

Rep: 65 Microsis is acknowledged by some
Unique Rep: 54
Trader Rating: 0
Default

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...
__________________

System: For The Win
CPU
Q6600 @ stock (for summer)
Motherboard
EVGA 750i FTW
Memory
2x2GB Crucial Ballistix @ stock (for summer)
Graphics Card
XFX 8800GT (700/1000)
Hard Drive
300GB VelociRaptor, 36GB Raptor, 250GB Caviar SE16
Sound Card
X-Fi XtremeMusic
Power Supply
580W Hiper Type-R
Case
Cooler Master CM690
CPU cooling
Tuniq Tower
GPU cooling
Thermaltake Duorb
OS
Windows Ultimate x64
Monitor
22" Samsung 226BW
Microsis is offline   Reply With Quote
Old 06-28-08   #3 (permalink)
Audiophile
 
boydyboyd's Avatar
 
intel nvidia

Join Date: Jan 2008
Location: England-land
Posts: 910

Rep: 63 boydyboyd is acknowledged by some
Unique Rep: 53
Folding Team Rank: 209
Hardware Reviews: 2
Trader Rating: 1
Default

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.
__________________
Quote:
Originally Posted by RobRedbeard - Why he overclocks: View Post
I do it for the all the hot women and general rockstar lifestyle.

System: Sig Rig
CPU
Q6600 3.6 (1.5v)
Motherboard
Asus P5B Premium
Memory
2GB Corsair XMS2 800MHz
Graphics Card
EVGA 8800GTS 640 SSC
Hard Drive
830Gb
Sound Card
E-MU 0202 USB
Power Supply
Enermax 535w
Case
Antec P180
CPU cooling
Zalman Reserator/Zalman Gold Water Block
OS
Vista 32
Monitor
sony 19'' xblack + Samsung 22''
boydyboyd is offline I fold for Overclock.net boydyboyd's Gallery   Reply With Quote
Old 06-28-08   #4 (permalink)
Linux Lobbyist
 
Pap3r's Avatar
 
intel nvidia

Join Date: Feb 2008
Location: ~/
Posts: 468

Rep: 33 Pap3r is acknowledged by some
Unique Rep: 29
Folding Team Rank: 344
Trader Rating: 0
Default

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
__________________
Q6600 G0 @ 3409
4600+ Manchester @ 2809.9
Member of the LGC
Quote:
Originally Posted by GoHigh
All that work in my bathroom for three hours and for what... 2c. All that stroking... back and forth...

System: Mod
CPU
Q6600 G0 @ 3240MHz
Motherboard
Asus P5Q
Memory
2x1g OCZ Reaper DDR2
Graphics Card
XFX 8800GT Alpha Dog Edition 767/1833
Hard Drive
WD 160G SATA
Sound Card
Onboard
Power Supply
Rosewill 550w SLI
Case
TT Tsunami
CPU cooling
Vendetta 2 w/ 3000rpm Ultra Kaze
GPU cooling
Stock
OS
Ubuntu
Monitor
Syncmaster 730B

Last edited by Pap3r : 06-28-08 at 10:25 PM.
Pap3r is offline I fold for Overclock.net   Reply With Quote
Old 06-28-08   #5 (permalink)
Kernel Sanders
 
rabidgnome229's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Pittsburgh
Posts: 4,894
Blog Entries: 1

Rep: 548 rabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famous
Unique Rep: 326
FAQs Submitted: 6
Trader Rating: 5
Default

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
__________________
BIG BROTHER
I put on my robe and wizard hat...

IS WATCHING

System: It goes to eleven
CPU
E6300
Motherboard
DS3
Memory
2GB XMS2 DDR2-800
Graphics Card
EVGA 8600GTS
Hard Drive
1.294 TB
Sound Card
Audigy 2 ZS
Power Supply
Corsair 520HX
Case
Lian-Li v1000B Plus
CPU cooling
TTBT
GPU cooling
Thermalright V2
OS
Arch Linux/XP
Monitor
Samsung 226bw
rabidgnome229 is offline Overclocked Account   Reply With Quote
Old 06-28-08   #6 (permalink)
Linux Lobbyist
 
Pap3r's Avatar
 
intel nvidia

Join Date: Feb 2008
Location: ~/
Posts: 468

Rep: 33 Pap3r is acknowledged by some
Unique Rep: 29
Folding Team Rank: 344
Trader Rating: 0
Default

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
__________________
Q6600 G0 @ 3409
4600+ Manchester @ 2809.9
Member of the LGC
Quote:
Originally Posted by GoHigh
All that work in my bathroom for three hours and for what... 2c. All that stroking... back and forth...

System: Mod
CPU
Q6600 G0 @ 3240MHz
Motherboard
Asus P5Q
Memory
2x1g OCZ Reaper DDR2
Graphics Card
XFX 8800GT Alpha Dog Edition 767/1833
Hard Drive
WD 160G SATA
Sound Card
Onboard
Power Supply
Rosewill 550w SLI
Case
TT Tsunami
CPU cooling
Vendetta 2 w/ 3000rpm Ultra Kaze
GPU cooling
Stock
OS
Ubuntu
Monitor
Syncmaster 730B

Last edited by Pap3r : 06-28-08 at 10:26 PM.
Pap3r is offline I fold for Overclock.net   Reply With Quote
Old 06-28-08   #7 (permalink)
Kernel Sanders
 
rabidgnome229's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Pittsburgh
Posts: 4,894
Blog Entries: 1

Rep: 548 rabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famous
Unique Rep: 326
FAQs Submitted: 6
Trader Rating: 5
Default

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.
__________________
BIG BROTHER
I put on my robe and wizard hat...

IS WATCHING

System: It goes to eleven
CPU
E6300
Motherboard
DS3
Memory
2GB XMS2 DDR2-800
Graphics Card
EVGA 8600GTS
Hard Drive
1.294 TB
Sound Card
Audigy 2 ZS
Power Supply
Corsair 520HX
Case
Lian-Li v1000B Plus
CPU cooling
TTBT
GPU cooling
Thermalright V2
OS
Arch Linux/XP
Monitor
Samsung 226bw
rabidgnome229 is offline Overclocked Account   Reply With Quote
Old 06-28-08   #8 (permalink)
Audiophile
 
boydyboyd's Avatar
 
intel nvidia

Join Date: Jan 2008
Location: England-land
Posts: 910

Rep: 63 boydyboyd is acknowledged by some
Unique Rep: 53
Folding Team Rank: 209
Hardware Reviews: 2
Trader Rating: 1
Default

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.
__________________
Quote:
Originally Posted by RobRedbeard - Why he overclocks: View Post
I do it for the all the hot women and general rockstar lifestyle.

System: Sig Rig
CPU
Q6600 3.6 (1.5v)
Motherboard
Asus P5B Premium
Memory
2GB Corsair XMS2 800MHz
Graphics Card
EVGA 8800GTS 640 SSC
Hard Drive
830Gb
Sound Card
E-MU 0202 USB
Power Supply
Enermax 535w
Case
Antec P180
CPU cooling
Zalman Reserator/Zalman Gold Water Block
OS
Vista 32
Monitor
sony 19'' xblack + Samsung 22''
boydyboyd is offline I fold for Overclock.net boydyboyd's Gallery   Reply With Quote
Old 06-28-08   #9 (permalink)
Linux Lobbyist
 
Pap3r's Avatar
 
intel nvidia

Join Date: Feb 2008
Location: ~/
Posts: 468

Rep: 33 Pap3r is acknowledged by some
Unique Rep: 29
Folding Team Rank: 344
Trader Rating: 0
Default

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.
__________________
Q6600 G0 @ 3409
4600+ Manchester @ 2809.9
Member of the LGC
Quote:
Originally Posted by GoHigh
All that work in my bathroom for three hours and for what... 2c. All that stroking... back and forth...

System: Mod
CPU
Q6600 G0 @ 3240MHz
Motherboard
Asus P5Q
Memory
2x1g OCZ Reaper DDR2
Graphics Card
XFX 8800GT Alpha Dog Edition 767/1833
Hard Drive
WD 160G SATA
Sound Card
Onboard
Power Supply
Rosewill 550w SLI
Case
TT Tsunami
CPU cooling
Vendetta 2 w/ 3000rpm Ultra Kaze
GPU cooling
Stock
OS
Ubuntu
Monitor
Syncmaster 730B
Pap3r is offline I fold for Overclock.net   Reply With Quote
Old 06-28-08   #10 (permalink)
Audiophile
 
boydyboyd's Avatar
 
intel nvidia

Join Date: Jan 2008
Location: England-land
Posts: 910

Rep: 63 boydyboyd is acknowledged by some
Unique Rep: 53
Folding Team Rank: 209
Hardware Reviews: 2
Trader Rating: 1
Default

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!
__________________
Quote:
Originally Posted by RobRedbeard - Why he overclocks: View Post
I do it for the all the hot women and general rockstar lifestyle.

System: Sig Rig
CPU
Q6600 3.6 (1.5v)
Motherboard
Asus P5B Premium
Memory
2GB Corsair XMS2 800MHz
Graphics Card
EVGA 8800GTS 640 SSC
Hard Drive
830Gb
Sound Card
E-MU 0202 USB
Power Supply
Enermax 535w
Case
Antec P180
CPU cooling
Zalman Reserator/Zalman Gold Water Block
OS
Vista 32
Monitor
sony 19'' xblack + Samsung 22''
boydyboyd is offline I fold for Overclock.net boydyboyd's Gallery   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 06:48 PM.