![]() |
|
|
#1 |
![]() Join Date: Nov 2008
Location: Sydney, Australia
Posts: 757 (0.46/day)
Thanks: 490
Thanked 77 Times in 73 Posts
|
Locked out of drive on Ubuntu Server
Hey guys,
I was trying to delete some torrents that I had downloaded with transmission-daemon and was unable to from my samba share on windows. I figured the best solution was to 'sudo chmod -R 0777 /media/Storage' (my drive with samba) but apparently not. This locked both my windows user and my user on my ubuntu server out of the drive completely with a message saying 'ls: cannot access /media/Storage: Permission denied'. I am able to login as root with 'sudo bash' and make changes however I am uncertain as to how to make my drive accessible again. Doing a 'ls -ld' on the directory shows 'drwsrwsrwx 39 root root 4096 Nov 17 21:20 /media/Storage' Any ideas?
__________________
“As long as you bypass the quantum septicular rings and interconnect the transmission module 3/4 the way down the flux capacitor you'll do just fine.” -Soylent Joe
“Don't go all flash. Your website would be a resource hog, slow down people's browsers and kill little baby seals.” -xbonez
|
|
|
|
|
|
#2 | |
![]() Join Date: Jan 2012
Location: Dover, New Hampshire, USA
Posts: 4,247 (8.85/day)
Thanks: 1,269
Thanked 1,324 Times in 982 Posts
|
Quote:
Code:
sudo chown -R [username]:[group] /to/some/path Code:
sudo chmod -R u+rw /to/some/path
__________________
MyHeat |
|
|
|
|
| The Following User Says Thank You to Aquinus For This Useful Post: |
|
|
#3 | |
![]() Join Date: Nov 2008
Location: Sydney, Australia
Posts: 757 (0.46/day)
Thanks: 490
Thanked 77 Times in 73 Posts
|
Quote:
__________________
“As long as you bypass the quantum septicular rings and interconnect the transmission module 3/4 the way down the flux capacitor you'll do just fine.” -Soylent Joe
“Don't go all flash. Your website would be a resource hog, slow down people's browsers and kill little baby seals.” -xbonez
|
|
|
|
|
|
|
#4 | |
![]() Join Date: Jan 2012
Location: Dover, New Hampshire, USA
Posts: 4,247 (8.85/day)
Thanks: 1,269
Thanked 1,324 Times in 982 Posts
|
Quote:
Is the drive even mounted? How does the output of Code:
sudo mount
__________________
MyHeat |
|
|
|
|
| The Following User Says Thank You to Aquinus For This Useful Post: |
|
|
#5 | |
![]() Join Date: Nov 2008
Location: Sydney, Australia
Posts: 757 (0.46/day)
Thanks: 490
Thanked 77 Times in 73 Posts
|
Quote:
Code:
/dev/sdb1 on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev) /dev/sda1 on /media/Storage type ext4 (rw)
__________________
“As long as you bypass the quantum septicular rings and interconnect the transmission module 3/4 the way down the flux capacitor you'll do just fine.” -Soylent Joe
“Don't go all flash. Your website would be a resource hog, slow down people's browsers and kill little baby seals.” -xbonez
|
|
|
|
|
|
|
#6 |
![]() Join Date: Jan 2012
Location: Dover, New Hampshire, USA
Posts: 4,247 (8.85/day)
Thanks: 1,269
Thanked 1,324 Times in 982 Posts
|
So after you chmod and chown the directory, what does "ls -l /media/" show?
Preferably a before and after would be nice.
__________________
MyHeat |
|
|
|
| The Following User Says Thank You to Aquinus For This Useful Post: |
|
|
#7 |
![]() Join Date: Nov 2008
Location: Sydney, Australia
Posts: 757 (0.46/day)
Thanks: 490
Thanked 77 Times in 73 Posts
|
before
Code:
sudo ls -la /media/Storage drwsrwsrwx 39 root root 4096 Nov 17 21:20 /media/Storage Code:
ls -l /media ls: cannot access /media/cdrom: Permission denied ls: cannot access /media/Storage: Permission denied total 0 d????????? ? ? ? ? ? cdrom d????????? ? ? ? ? ? Storage sudo ls -l total 8 drwxr-xr-x 2 root root 4096 Oct 8 20:30 cdrom drwsrwsrwx 39 onafets onafets 4096 Nov 17 21:20 Storage
__________________
“As long as you bypass the quantum septicular rings and interconnect the transmission module 3/4 the way down the flux capacitor you'll do just fine.” -Soylent Joe
“Don't go all flash. Your website would be a resource hog, slow down people's browsers and kill little baby seals.” -xbonez
|
|
|
|
|
|
#8 | |
![]() Join Date: Jan 2012
Location: Dover, New Hampshire, USA
Posts: 4,247 (8.85/day)
Thanks: 1,269
Thanked 1,324 Times in 982 Posts
|
Quote:
When you restart are the permissions the same? These are the permissions that I have on my workstation for /media maybe Code:
sudo chown -R root:root /media sudo chmod -R 775 /media
__________________
MyHeat |
|
|
|
|
| The Following User Says Thank You to Aquinus For This Useful Post: |
|
|
#9 |
![]() Join Date: Nov 2008
Location: Sydney, Australia
Posts: 757 (0.46/day)
Thanks: 490
Thanked 77 Times in 73 Posts
|
Code:
sudo chmod -R 775 /media
__________________
“As long as you bypass the quantum septicular rings and interconnect the transmission module 3/4 the way down the flux capacitor you'll do just fine.” -Soylent Joe
“Don't go all flash. Your website would be a resource hog, slow down people's browsers and kill little baby seals.” -xbonez
|
|
|
|
|
|
#10 | |
![]() Join Date: Jan 2012
Location: Dover, New Hampshire, USA
Posts: 4,247 (8.85/day)
Thanks: 1,269
Thanked 1,324 Times in 982 Posts
|
Quote:
Code:
sudo chown root:root /media sudo chmod 775 /media sudo chmod -R 777 /media/Storage
__________________
MyHeat |
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ubuntu 12.04 LTS out | Easy Rhino | Linux / BSD / Mac OS X | 3 | Apr 26, 2012 10:22 PM |
| Headless ubuntu 10.04 media streaming server | Killer_Rubber_Ducky | Linux / BSD / Mac OS X | 9 | Aug 7, 2011 01:14 PM |
| Ubuntu 10.04 LTS officially out! | Easy Rhino | Linux / BSD / Mac OS X | 37 | May 31, 2010 12:49 AM |
| Ubuntu 8.04 is out!! | mab1376 | Linux / BSD / Mac OS X | 5 | Apr 25, 2008 10:00 AM |
| Ubuntu 7.10 Is Out | malware | News | 10 | Oct 19, 2007 11:49 PM |