LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-14-2017, 03:03 AM   #1
kazewind
LQ Newbie
 
Registered: Jul 2017
Posts: 2

Rep: Reputation: Disabled
"USER failed: Permission Denied" when apt-get update is run. How to login?


Hi guys, I am new to Linux.
As part of my learning process, I am currently trying to create an apt-get repository on my Debian server.
However I asked to have an added requirement which is to only allow specific users to login to this ftp server.

This is the screencap from the client trying to apt-get update from :
http://imgur.com/a/DjnfO

Requirements:
- (0) My server should run on 216.75.54.250 (Internal Network ip)
- (1) FTP server should prevent anonymous login and permit only User01 to login to FTP service
- (2) Set up an apt-get repository where other servers within the LAN can install packages. Software packages shall be served via ftp at ftp://<server>/packages/

What I have tested [results]:
- apt-get update from server via http apache (apache is linked to the same <root>/packages) [Works]
- apt-get update from server via ftp WITHOUT doing requirement (1) [Works - This suggests that requirement (2) is successful]
- "ftp -p 216.75.54.250" and login as User01 WITH requirement (1) done [Works]
 
Old 07-14-2017, 09:22 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,342
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Are you using su to become root before issuing the apt-get commands.

Note that, unlike the *buntus, Debian does not configure sudo at time of install. This is standard outside of the *buntu-verse.
 
Old 07-17-2017, 09:09 AM   #3
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,465

Rep: Reputation: 299Reputation: 299Reputation: 299
I'm highly confused with your screenshot.

While your user is called "root", your CLI shows a normal/restricted user login.

Did create a normal user with the name "root"? (didn't even know that was possible, that's why sudo exists)
Is this really your system/root prompt or are you using some weird remote control thingy?
Could you post your user configuration (excluding whatever you don't like to be public)?

PS: Also note that some things did change (including ftp access, try the usual https://ftp with a known to be working mirror)

Last edited by jens; 07-17-2017 at 09:40 AM.
 
Old 07-21-2017, 12:52 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
It's a permissions problem in the ftp server. Did you build the mirror as root?
 
Old 08-03-2017, 10:25 AM   #5
kazewind
LQ Newbie
 
Registered: Jul 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Sorry all for late reply - Solved

The solution was

vi /etc/apt/sources.list
deb ftp://User01: password@216.75.54.250:/ /
 
Old 08-03-2017, 03:32 PM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
That passes the password as clear text.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
passwd: permission denied error when trying to update a user's password ProAm500 Linux - Newbie 18 01-14-2020 11:47 PM
[SOLVED] FAILED to authorize user with PAM (Permission denied) newbie14 Linux - Security 30 08-04-2017 07:36 AM
[SOLVED] chroot: failed to run command '/bin/bash': Permission denied AlleyTrotter Slackware 5 10-18-2012 04:09 PM
Root user denied permission to update/install software appin69 Fedora 4 07-08-2008 11:43 AM
ssh login with normal user, receive: /dev/null: Permission denied mark78301 Red Hat 3 11-12-2005 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration