OT Linux Help (again)

Got something to say or just want fewer pesky ads? Join us... 😊



Lammy

Registered Abuser
Oct 1, 2003
7,581
Newhaven/Lewes/Atlanta
OK I'm trying to mount a network folder on a Windows machine. Which I can do. However when I come to try and set the permissions it LIES!

Here's what I do;

Code:
mount -t smbfs -o username=[UNAME],workgroup=[WGRP] //[ip address]/[path] /[folder]

this works fine. However I only have write access in root.

so I do this

Code:
chmod 777 /[folder]

it tells me that it has changed the permissions. But I don't believe it so I check with a

Code:
ls -l

low and behold, nothing has changed.

Please help!!!
 








Cian

Well-known member
Jul 16, 2003
14,262
Dublin, Ireland
Can you change permissions over smb? If the user you've logged in as doesn't have the permissions to begin with, you're f***ed IIRC.
 


Lammy

Registered Abuser
Oct 1, 2003
7,581
Newhaven/Lewes/Atlanta
MYOB said:
Can you change permissions over smb? If the user you've logged in as doesn't have the permissions to begin with, you're f***ed IIRC.

Linux really is a load of COCK!

How do I give myself root privileges?
 




Cian

Well-known member
Jul 16, 2003
14,262
Dublin, Ireland
"su" then type in the root password. If you know it.

Can you not mount the smb in your home dir? You don't -have- to mount a drive in /
 


Lammy

Registered Abuser
Oct 1, 2003
7,581
Newhaven/Lewes/Atlanta
MYOB said:
"su" then type in the root password. If you know it.

Can you not mount the smb in your home dir? You don't -have- to mount a drive in /

su just means I log in as root rather than giving the user root priv.

If I mount the drive in my home directory will that make a difference?
 


watsongooal

New member
Jul 7, 2003
2,556
Chislehurst
Have you switched it off and on again?
 




Cian

Well-known member
Jul 16, 2003
14,262
Dublin, Ireland
well, you can't give any user other than root root privilidges - unlike Windows. You can however do operations as root (ala runas on Windows) with "sudo" but sudo needs to be set up.

Mounting under your home dir means you should have full access to it and is otherwise no different to mounting under /. I always mount drives in to /mnt, so /home/lammy or whatever is functionally no different.
 


Lammy

Registered Abuser
Oct 1, 2003
7,581
Newhaven/Lewes/Atlanta
MYOB said:
well, you can't give any user other than root root privilidges - unlike Windows. You can however do operations as root (ala runas on Windows) with "sudo" but sudo needs to be set up.

Mounting under your home dir means you should have full access to it and is otherwise no different to mounting under /. I always mount drives in to /mnt, so /home/lammy or whatever is functionally no different.

just mounted it to /home/lammy/nas

I have full access as root but not as lammy :(
 


Cian

Well-known member
Jul 16, 2003
14,262
Dublin, Ireland
even under your home dir? methinks Samba's permissions handling is a load of bollox then. But then again, it is just a clone of CIFS, and CIFS permissions handling is a load of bollox too...
 




Lammy

Registered Abuser
Oct 1, 2003
7,581
Newhaven/Lewes/Atlanta
MYOB said:
even under your home dir? methinks Samba's permissions handling is a load of bollox then. But then again, it is just a clone of CIFS, and CIFS permissions handling is a load of bollox too...

I find everything in Linux takes me a day to set up. In Windows I tend to get things running in a few minutes. Granted I have much more experience with Windows but I can never remember it being this painful!

thanks for the help anyway :)
 


adrian29uk

New member
Sep 10, 2003
3,389
Thats better. I say it looks smashing.
 

Attachments

  • sussexuniversityaerialkm5.jpg
    sussexuniversityaerialkm5.jpg
    70.6 KB · Views: 45




Albion and Premier League latest from Sky Sports


Top